<%--
  Created by IntelliJ IDEA.
  User: zhangjie
  Date: 2019/4/24
  Time: 4:06 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/component/common.jsp" %>
<%@ include file="/WEB-INF/jsp/component/commonBottom.jsp" %>
<html>

<head>
    <meta http-equiv="Content-Type" content="multipart/form-data; charset=utf-8" />
    <title>骨松信息修改页面</title>
    <link rel="stylesheet" href="${frames}/css/lib/bootstrap.min.css" type="text/css">
    <link rel="stylesheet" href="${frames}/css/lib/dataTables.bootstrap.css" type="text/css">
    <%--<link rel="stylesheet" href="${frames}/css/paginate.css" type="text/css">--%>
    <%--<link rel="stylesheet" href="${frames}/css/qulitity.css" type="text/css">--%>
    <link rel="stylesheet" href="../assets/css/views/modules/_common.scss">
    <link rel="stylesheet" href="${newframe}/css/base/base.css" type="text/css">
    <link rel="stylesheet" href="${assets}/css/views/bloodScreening.css">
    <link rel="stylesheet" href="${assets}/css/views/department/departmentMgr.css">
    <script src="../assets/js/views/vue.min.js"></script>
    <script src="${js}/jquery-1.9.1.min.js"></script>
    <script src="${js}/jquery.dataTables.js"></script>
    <link href="../assets/css/bootstrap-datetimepicker.css" type="text/css">
    <script src="../assets/js/bootstrap-datetimepicker.min.js"></script>
    <script src="${frames}/Chronic/laydate/laydate.js"></script>
    <script src="${assets}/js/views/bpAbnormal.js"></script>
    <%@ include file="/WEB-INF/jsp/component/commonBottom.jsp" %>
    <script type="text/javascript" src="../assets/js/echarts.js"></script>
    <style>
        .color{
            margin:0 !important;
        }
        span{
            font-weight: normal;
            font-stretch: normal;
            letter-spacing: 0px;
            font-family: PingFang-SC-Regular;
        }
        .illness span{
            height: 16px;
            font-family: PingFang-SC-Regular;
            font-size: 16px;
            font-weight: normal;
            font-stretch: normal;
            letter-spacing: 0px;
            color: #666666;
        }
        .btn{
            float:right ;
            width:100px;
            font-size:16px;
            line-height:28px;
            background:#35acfd !important;
            margin-right:15px !important;
            padding:0 !important;
        }
        .title{
            font-family: MicrosoftYaHei;
            font-size: 16px !important;
            font-weight: normal;
            font-stretch: normal;
            letter-spacing: 0.3px;
            color: #666666;
        }
        .month{
            width:100%;
            display:block;
            height:35px;
            margin-bottom:0px;
            /*margin-bottom:-0.5px;*/
        }
        .month li{
            border:1px solid #d0d0d0;
            width:140px;
            line-height:35px;
            height:35px;
            text-align:center;
            color:#7e7e7e;
            font-size:17px;
            float:left;
            margin:0 -0.5px;
        }
        .month li:nth-child(1){
            width:84px;
        }
        label{
            height: 16px;
            font-family: PingFang-SC-Regular;
            font-size: 16px;
            font-weight: normal;
            font-stretch: normal;
            letter-spacing: 0px;
            color: #666666;
        }
        /* 随访时间及方式 */
        .way,illness,sign,live,evaluate{
            margin-bottom:30px;
        }
        .way_content,illness_content{
            width:100%;
            margin-left:15px;
            margin-top:19px;
        }
        .way_content label{
            width:auto;
        }
        .way_content div{
            margin-bottom:20px;
        }
        .way_content input,#accompanyType{
            width: 15%;
            line-height: 30px;
            height:30px;
            border: solid 1px #d0d0d0;
            font-family: MicrosoftYaHei;
            font-size: 14px;
            font-weight: normal;
            font-stretch: normal;
            letter-spacing: 0px;
            color: #333333;
            text-indent:10px !important;
        }
        /* 病症 */
        .illness_content{
            margin-left:15px;
            margin-bottom:20px;
        }
        .illness_content label{
            margin-left:22px;
        }
        input[type=checkbox] {
            width:20px;
            height:20px;
            -webkit-appearance: none;
            border-radius:5px;
            border:1px solid #9e9e9e;
            vertical-align:top;
            margin-top:7px;
            display:inline-block !important;
        }
        input[type=checkbox]:checked{
            background-image: url('../assets/images/radio.png');
            background-size:100% 100%;
            border:none
        }
        input::-webkit-outer-spin-button,
        input::-webkit-inner-spin-button {
            -webkit-appearance: none;
        }
        input[type="number"]{
            -moz-appearance: textfield;
        }
        .ill1{
            margin-right:22px;
            margin-bottom:20px;
        }
        .ill1 label{
            margin-left:22px;
        }
        /* 体征 */
        .sign_content{
            margin-left:15px;
            margin-top:20px;
            margin-bottom:20px;
        }
        .sign_content div input{
            width:180px;
            line-height: 30px;
            border: solid 1px #d0d0d0;
            text-indent:10px;
            position:absolute;
            height:30px;
            display:inline-block;
        }
        .sign_content div span{
            position:relative;
            left:130px;
        }
        .sign_content div{
            display:inline-block;
            width:270px;
        }
        .second div input{
            width:135px;
        }
        .second div span{
            left:80px;
        }
        /*.second div{*/
        /*width:230px;*/
        /*}*/
        .third div input{
            width:135px;
        }
        .third div span{
            left:80px;
        }
        .third div{
            width:230px;
        }
        /* 生活方式调查 */
        .live_content{
            margin-left:15px;
            margin-top:20px;
        }
        .live_content span{
            font-family: PingFang-SC-Regular;
            font-size: 16px;
            font-weight: normal;
            font-stretch: normal;
            letter-spacing: 0px;
            color: #666666;
            margin-right:19px;
            display:inline-block;
        }
        .live_content input{
            width: 115px;
            height: 30px;
            border: solid 1px #d0d0d0;
            line-height:30px;
            margin-right:10px;
            text-indent:10px;
        }
        .live_content div{
            margin-top:20px;
        }
        .sprots span{
            margin-right:65px;
        }
        #salt{
            width: 15%;
            height: 30px;
            border: solid 1px #d0d0d0;
            font-family: MicrosoftYaHei;
            font-size: 15px;
            font-weight: normal;
            font-stretch: normal;
            line-height: 30px;
            letter-spacing: 0px;
            color: #333333;
            text-indent:10px;
            margin-right:19px;
        }
        .salt input{
            width: 180px;
            height: 30px;
            border: solid 1px #d0d0d0;
            line-height:30px;
            margin-right:10px;
            text-indent:10px;
        }
        .mentality{
            margin-bottom:20px;
        }
        select{
            width: 181px;
            height: 30px;
            border: solid 1px #d0d0d0;
            font-family: MicrosoftYaHei;
            font-size: 15px;
            font-weight: normal;
            font-stretch: normal;
            line-height: 30px;
            letter-spacing: 0px;
            color: #333333;
            text-indent:10px;
        }
        .salttype{
            width: 200px;
            height: 30px;
        }
        /* 随访评估 */
        .evaluate_content{
            margin-left:15px;
            margin-bottom:20px;
            margin-top:20px;
        }
        .evaluate_content span{
            font-family: PingFang-SC-Regular;
            font-size: 16px;
            font-weight: normal;
            font-stretch: normal;
            letter-spacing: 0px;
            color: #666666;
            margin-right:19px;
            display:inline-block;
        }
        /* 治疗建议 */
        .suggest_content{
            margin-left:15px;
            margin-bottom:20px;
            margin-top:20px;
        }
        .suggest_content span{
            font-family: PingFang-SC-Regular;
            font-size: 16px;
            font-weight: normal;
            font-stretch: normal;
            letter-spacing: 0px;
            color: #666666;
            margin-right:19px;
            display:inline-block;
        }
        .suggest_content textarea{
            width: 500px;
            height: 120px;
            border: solid 1px #d0d0d0;
            vertical-align:top
        }
        #main{
            margin-top:0px !important;
        }
        /*  表格 */
        #example th{
            height: 30px;
            background-color: #e6e6e6;
            font-family: MicrosoftYaHei;
            font-size: 16px;
            font-weight: normal;
            font-stretch: normal;
            line-height: 30px;
            letter-spacing: 0px;
            color: #666666;
            text-align:center;
        }
        #example td{
            text-align:center;
            height: 17px;
            font-family: MicrosoftYaHei;
            font-size: 16px;
            font-weight: normal;
            font-stretch: normal;
            line-height: 30px;
            letter-spacing: 0px;
            color: #333333;
        }
        #mytool{
            width:96%;
        }
        #example_paginate{
            margin-top:15px;
            width:100%;
            text-align: center;
            margin-bottom:40px;
        }
        button{
            margin-top:0px !important;
        }
        .btn{
            font-family: MicrosoftYaHei;
            font-size: 16px;
            font-weight: normal;
            font-stretch: normal;
            letter-spacing: 0.3px;
            color: #ffffff;
        }
        textarea{
            font-family: MicrosoftYaHei;
            font-size: 16px;
            font-weight: normal;
            font-stretch: normal;
            line-height: 30px;
            letter-spacing: 0px;
            color: #333333;
            text-indent:10px;
        }
        input{
            text-indent:10px;
            font-family: MicrosoftYaHei;
            font-size: 14px;
            font-weight: normal;
            font-stretch: normal;
            line-height: 30px;
            letter-spacing: 0px;
            color: #333333;
        }
        .content{
            height:auto !important;
        }
        .illness{
            box-shadow:none !important;
            margin-top:0 !important;
            padding-top:20px;
        }
        .dataTables_empty{
            line-height:30px;
        }
        .default{
            border:1px solid red !important;
        }
        input{
            display:inline-block !important;
        }
        .warn{
            padding:30px;
            width:90% !important;
            background:#e6e6e6;
        }
        .warn ul li{
            font-family: MicrosoftYaHei;
            font-size: 16px;
            font-weight: normal;
            font-stretch: normal;
            line-height: 30px;
            letter-spacing: 0px;
            color: #333333;
            text-indent:10px;
        }
        input[type=radio] {
            width:20px;
            height:20px;
            vertical-align:middle;
            -webkit-appearance: none;
            margin:0 !important;
            border-radius:50%;
            background-image: url('../assets/images/nocheck.png');
            background-size:100% 100%
        }
        input[type=radio]:checked{
            background-image: url('../assets/images/checkout.png');
            background-size:100% 100%
        }
        .default{
            border:1px solid red !important;
        }
        .inputVal{
            position:absolute;
            height:30px;
        }
        .inputText{
            position:relative;
        }
        textarea{
            width: 60%;
            height: 180px;
            border: solid 1px #d0d0d0;
            vertical-align:top;
            text-indent:10px;
            font-family: MicrosoftYaHei;
            font-size: 14px;
            font-weight: normal;
            font-stretch: normal;
            letter-spacing: 0px;
            color: #333333;
        }
        .unit{
            position:relative;
            height:30px;
            margin-bottom:0px !important;
            vertiacl:middle;
            top:8px;
        }
        .unit input{
            position:absolute;
        }
        #tooltip{
            position:absolute;
            border:1px solid #ccc;
            background:#333;
            width:400px;
            height:auto;
            padding:2px;
            display:none;
            color:#fff;
        }
        .unit span{
            position:absolute;
            left:80%;
        }
        .illnessTitle{
            width:160px;
            display:inline-block;
            vertical-align:middle;
            text-align:center;
            line-height:34px !important;
            height:34px !important;
        }
        #example_wrapper div:nth-child(1) div:nth-child(1){
            display:none;
        }
        .dataTables_paginate{
            display:none;
        }
        tbody .dataTables_empty{
            text-align:center;
        }
        .img{
            width:100px;
            height:100px;
            display:inline-block;
        }
        tbody tr th{
            background:white !important;
        }
        thead tr th{
            text-align:center;
            /*width:14.2% !important;*/
        }
        /*thead hr{*/
        /*border-top: none !important;*/
        /*border-bottom: none !important;*/
        /*}*/
        #example1 tbody tr td{
            font-family: MicrosoftYaHei;
            font-size: 16px;
            font-weight: normal;
            font-stretch: normal;
            letter-spacing: 0px;
            color: #333333;
        }
        #example1 tbody tr{
            height:42px !important;
        }
        #example1 tbody tr{
            border-bottom:1px solid #e6e6e6 !important;
        }
        #example1 thead tr th{
            font-family: MicrosoftYaHei;
            font-size: 16px;
            font-weight: normal;
            font-stretch: normal;
            letter-spacing: 0px;
            color: #999999;
        }
        .dataTable{
            text-align:center;
        }
    </style>
</head>
<body>
<div>
    <%@ include file="../../breadline.jsp" %>
</div>
<div id="main" class="wrap">
    <%--<div v-show="medical">--%>
    <%--<%@ include file="./check.jsp" %>--%>
    <%--</div>--%>

    <div>
        <%@ include file="../../personalnews.jsp" %>
    </div>

    <div class="illness" style="width:99%; margin-right:19px;">
        <div class="tableWrap" style="padding-bottom:20px;background-color: #ffffff;box-shadow: 0 3px 7px 0 rgba(0, 0, 0, 0.05);">
            <div style="margin-left:20px;">
                <h3 style="margin-bottom:16px;font-size:20px;">诊疗信息</h3>
                <button type="button" class="btn btn-info" @click="saveMedicalCare()">
                    <img src="../assets/images/revise.png" alt="" style="width:16px;vertical-align: middle;">  保存
                </button>
            </div>
            <div class="illness" style="width:99%; margin-right:19px;">
                <div class="tableWrap" style="padding-bottom:20px;background-color: #ffffff;box-shadow: 0 3px 7px 0 rgba(0, 0, 0, 0.05);">
                    <div style="margin-left:19px;">
                        <div class="way">
                            <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                            <span class="title">随访日期</span>
                            <div class="way_content">
                                <div style="margin-bottom:0px;">
                                    <label for="followDate" style="margin-left:20px;">随访日期：</label>
                                    <div class="input-group date form_date" data-date-format="yyyy-mm-dd HH:mm:ss"
                                         style="display:inline-block !important;width:15%;">
                                        <input id="followDate" type="text" class="lay-date"
                                               readonly style="width:100% !important;">
                                    </div>
                                </div>
                                <div style="margin-bottom:0px;">
                                    <label for="naxtFollowDate" style="margin-left:20px;">下次随访：</label>
                                    <div class="input-group date form_date" data-date-format="yyyy-mm-dd HH:mm:ss"
                                         style="display:inline-block !important;width:15%;">
                                        <input id="naxtFollowDate" type="text" class="lay-date"
                                               readonly style="width:100% !important;">
                                    </div>
                                </div>
                            </div>
                            <div class="way_content">
                                <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                                <span class="title">随诊记录</span>
                                <div>
                                    <label for="" style="margin-left:20px;">主诉（腰背痛、骨痛、肌肉抽搐、乏力、行走距离、新发骨折等）：</label>
                                    <textarea name="" id="" cols="30" rows="10" style="height:80px;" v-model="medicalService.chiefComplaint"></textarea>
                                </div>
                                <div style="margin-bottom:0px;margin-top:20px;">
                                    <label for="explanations" style="margin-left:20px;">其他说明的情况：</label>
                                    <input type="text"   class="height form-control" id="explanations" v-model="medicalService.explanations">
                                </div>
                                <div style="margin-bottom:0px;margin-top:20px;">
                                    <label for="physical" style="margin-left:20px;">查体：</label>
                                    <input type="text" class="height form-control" id="physical" v-model="medicalService.physical">
                                </div>
                                <div style="margin-bottom:0px;margin-top:20px;">
                                    <label for="diagnosis" style="margin-left:20px;">诊断：</label>
                                    <input type="text"  class="height form-control" id="diagnosis" v-model="medicalService.diagnosis">
                                </div>

                                <div style="margin-left:20px;margin-top:20px;">
                                    <label for="classification">分级：</label>
                                    <select name="classification" id="classification" v-model="medicalService.classification">
                                        <option value="">请选择</option>
                                        <option value="1">高危</option>
                                        <option value="2">骨质疏松</option>
                                        <option value="3">重度骨质疏松</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="way">
                            <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                            <span class="title">检验：</span>
                            <div class="way_content">
                                <div style="margin-bottom:0px;">
                                    <label for="inspectionDate" style="margin-left:20px;">检查日期：</label>
                                    <div class="input-group date form_date" data-date-format="yyyy-mm-dd HH:mm:ss"
                                         style="display:inline-block !important;width:15%;">
                                        <input id="inspectionDate" type="text" class="lay-date"
                                               readonly style="width:100% !important;">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="way">
                            <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                            <span class="title">骨代谢生化指标：</span>
                            <div class="way_content">
                                <div style="margin-left:20px;">
                                    <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;margin-top:0px;">
                                        <div style="margin-bottom:0px;width:340px;">
                                            <label for="balpMedicine" style="">骨特异性碱性磷酸酶（BALP）：</label>
                                            <input type="text" class="weightGuide form-control weight" name="balpMedicine" v-model="medicalService.balpMedicine">
                                            <span style="left:142px;">U/L</span>
                                        </div>
                                    </div>
                                </div>
                                <div style="margin-left:20px;">
                                    <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;margin-top:0px;">
                                        <div style="margin-bottom:0px;">
                                            <label for="ocMedicine" >骨钙素（OC）：</label>
                                            <input type="text" class="bmi form-control" name="ocMedicine" v-model="medicalService.ocMedicine">
                                            <span style="left:142px;">ng/mL</span>
                                        </div>
                                    </div>
                                </div>
                                <div style="margin-left:20px;">
                                    <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;margin-top:0px;">
                                        <div style="margin-bottom:0px;width:370px;">
                                            <label for="pnpMedicine" >总I型胶原氨基端延长肽（P1NP）：</label>
                                            <input type="text" class="weightGuide form-control weight" name="pnpMedicine" v-model="medicalService.pnpMedicine">
                                            <span style="left:142px;">ng/mL</span>
                                        </div>
                                    </div>
                                </div>
                                <div style="margin-left:20px;">
                                    <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;margin-top:0px;">
                                        <div style="margin-bottom:0px;width:290px;">
                                            <label for="ctxMedicine" >β胶原联降解产物（β-CTX）：</label>
                                            <input type="text" class="height form-control" style="width:150px;" name="ctxMedicine" v-model="medicalService.ctxMedicine">
                                            <span style="left:155px;">ng/mL</span>
                                        </div>
                                    </div>
                                </div>
                                <div style="margin-left:20px;">
                                    <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;margin-top:0px;">
                                        <div style="margin-bottom:0px;width:400px;">
                                            <label for="wssdMedicine" >25-羟维生素D：</label>
                                            <input type="text" class="height form-control" style="width:150px;" name="wssdMedicine" v-model="medicalService.wssdMedicine">
                                            <span style="left:155px;">ng/ml</span>
                                        </div>
                                    </div>
                                </div>
                                <div style="margin-left:20px;">
                                    <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;margin-top:0px;">
                                        <div style="margin-bottom:0px;width:315px;">
                                            <label for="pthMedicine" >甲状旁腺素（PTH)：</label>
                                            <input type="text" class="height form-control"  name="pthMedicine" v-model="medicalService.pthMedicine">
                                            <span style="left:142px;">pg/mL</span>
                                        </div>
                                    </div>
                                </div>
                                <div style="margin-left:20px;">
                                    <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;margin-top:0px;">
                                        <div style="margin-bottom:0px;width:253px;">
                                            <label for="calcium" >总钙：</label>
                                            <input type="text" class="height form-control"  name="calcium" v-model="medicalService.calcium">
                                            <span style="left:142px;">mmol/L</span>
                                        </div>
                                    </div>
                                </div>
                                <div style="margin-left:20px;">
                                    <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;margin-top:0px;">
                                        <div style="margin-bottom:0px;">
                                            <label for="phosphorus" >磷：</label>
                                            <input type="text" class="height form-control" name="phosphorus" v-model="medicalService.phosphorus">
                                            <span style="left:142px;">mmol/L</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="way">
                            <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                            <span class="title">常规化验：</span>
                            <div class="way_content">
                                <label for="routineBloodTest">血常规：</label>
                                <input type="radio" name="routineBloodTest" id="routineBloodTestYes2" v-model="medicalService.routineBloodTest" value="1">
                                <label for="routineBloodTestYes2">正常</label>
                                <input type="radio" name="routineBloodTest" id="routineBloodTestNo2" v-model="medicalService.routineBloodTest" value="2">
                                <label for="routineBloodTestNo2">异常</label>
                                <div v-if="medicalService.routineBloodTest == 2" class="sign_content third" style="margin-left:0px;margin-bottom:20px;">
                                    <div style="margin-bottom:0px;margin-right:50px;">
                                        <label for="whiteBloodCell">白细胞：</label>
                                        <input type="text" name="whiteBloodCell" id="whiteBloodCell" class="height form-control"
                                               v-model="medicalService.whiteBloodCell">
                                        <span style="left:78px;">10^9/L</span>
                                    </div>
                                    <div style="margin-bottom:0px;">
                                        <label for="redBloodCell">红细胞：</label>
                                        <input type="text" name="redBloodCell" id="redBloodCell" class="weightGuide form-control weight"
                                               v-model="medicalService.redBloodCell">
                                        <span style="left:69px;">10^12/L</span>
                                    </div>
                                    <div style="margin-bottom:0px;">
                                        <label for="hemoglobin">血红蛋白：</label>
                                        <input type="text" name="hemoglobin" id="hemoglobin" class="bmi form-control" v-model="medicalService.hemoglobin">
                                        <span style="left:109px;">g/L</span>
                                    </div>
                                    <div class="follow2" style="display: block;width:100%;margin:18px 0;">
                                        <div style="margin-bottom:0px;">
                                            <label for="platelet">血小板：</label>
                                            <input type="text" name="platelet" id="platelet" class="bmi form-control" v-model="medicalService.platelet">
                                            <span style="left:109px;">10^9/L</span>
                                        </div>
                                    </div>
                                </div>
                                <div style="margin-bottom:0px;">
                                    <label for="urinalysis">尿常规：</label>
                                    <input type="radio" name="urinalysis" id="urinalysisYes2" v-model="medicalService.urinalysis" value="1">
                                    <label for="urinalysisYes2">正常</label>
                                    <input type="radio" name="urinalysis" id="urinalysisNo2" v-model="medicalService.urinalysis" value="2">
                                    <label for="urinalysisNo2">异常</label>
                                </div>
                                <div v-if="medicalService.urinalysis == 2"  class="sign_content third" style="margin-left:0px;margin-bottom:20px;">
                                    <div style="margin-bottom:0px;margin-right:50px;">
                                        <label for="urineProtein">尿蛋白：</label>
                                        <input type="text" name="urineProtein" id="urineProtein" class="height form-control"
                                               v-model="medicalService.urineProtein">
                                    </div>
                                    <div style="margin-bottom:0px;">
                                        <label for="bld">尿隐血：</label>
                                        <input type="text" name="bld" id="bld" class="weightGuide form-control weight"
                                               v-model="medicalService.bld">
                                    </div>
                                    <div style="margin-bottom:0px;">
                                        <label for="urineSugar">尿糖：</label>
                                        <input type="text" name="urineSugar" id="urineSugar" class="bmi form-control" v-model="medicalService.urineSugar">
                                    </div>
                                </div>

                                <div style="margin-bottom:12px;">
                                    <label for="biochemistry">生化：</label>
                                    <input type="radio" name="biochemistry" id="biochemistryYes2" v-model="medicalService.biochemistry" value="1">
                                    <label for="biochemistryYes2">正常</label>
                                    <input type="radio" name="biochemistry" id="biochemistryNo2" v-model="medicalService.biochemistry" value="2">
                                    <label for="biochemistryNo2">异常</label>
                                </div>
                                <div v-if="medicalService.biochemistry == 2">
                                    <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;margin-top:0px;">
                                        <div style="margin-bottom:0px;margin-right:50px;">
                                            <label for="totalProtein">总蛋白：</label>
                                            <input type="text" name="totalProtein" id="totalProtein" class="height form-control"
                                                   v-model="medicalService.totalProtein">
                                            <span style="left:109px;">g/L</span>
                                        </div>
                                        <div style="margin-bottom:0px;">
                                            <label for="albumin">白蛋白：</label>
                                            <input type="text" name="albumin" id="albumin" class="weightGuide form-control weight"
                                                   v-model="medicalService.albumin">
                                            <span style="left:109px;">g/L</span>
                                        </div>
                                        <div style="margin-bottom:0px;">
                                            <label for="globulin">球蛋白：</label>
                                            <input type="text" name="globulin" id="globulin" class="bmi form-control" v-model="medicalService.globulin">
                                            <span style="left:109px;">g/L</span>
                                        </div>
                                    </div>
                                </div>
                                <div v-if="medicalService.biochemistry == 2">
                                    <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;margin-top:0px;">
                                        <div style="margin-bottom:0px;margin-right:50px;">
                                            <label for="totalBilirubin">总胆红素：</label>
                                            <input type="text" name="totalBilirubin" id="totalBilirubin" class="height form-control"
                                                   v-model="medicalService.totalBilirubin">
                                            <span style="left:78px;">umol/L</span>
                                        </div>
                                        <div style="margin-bottom:0px;">
                                            <label for="alanine">谷丙转氨酶：</label>
                                            <input type="text" name="alanine" id="alanine" class="weightGuide form-control weight"
                                                   v-model="medicalService.alanine">
                                            <span style="left:103px;">IU/L</span>
                                        </div>
                                        <div style="margin-bottom:0px;margin-left:32px;">
                                            <label for="aspartate">谷草转氨酶：</label>
                                            <input type="text" name="aspartate" id="aspartate" class="bmi form-control" v-model="medicalService.aspartate">
                                            <span style="left:103px;">IU/L</span>
                                        </div>
                                    </div>
                                </div>
                                <div v-if="medicalService.biochemistry == 2">
                                    <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;margin-top:0px;">
                                        <div style="margin-bottom:0px;margin-right:50px;">
                                            <label for="alkaline">碱性磷酸酶：</label>
                                            <input type="text" name="alkaline" id="alkaline" class="height form-control"
                                                   v-model="medicalService.alkaline">
                                            <span style="left:102px;">IU/L</span>
                                        </div>
                                        <div style="margin-bottom:0px;">
                                            <label for="creatinine">肌酐：</label>
                                            <input type="text" name="creatinine" id="creatinine" class="weightGuide form-control weight"
                                                   v-model="medicalService.creatinine">
                                            <span style="left:80px;">umol/L</span>
                                        </div>
                                    </div>
                                </div>
                                <div style="margin-bottom:12px;">
                                    <label for="esr" style="color:#0d1dae;font-weight: 600">血沉：</label>
                                    <input type="text" name="esr" id="esr" class="bmi form-control" v-model="medicalService.esr">
                                    <span style="left:109px;">mm/h</span>
                                </div>
                            </div>
                        </div>
                        <div class="way">
                            <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                            <span class="title">其他：</span>
                            <div class="way_content">
                                <div style="margin-bottom:12px;">
                                    <label for="thyroidFunction">甲状腺功能7项：</label>
                                    <input type="radio" name="thyroidFunction" id="thyroidFunctionYes2" v-model="medicalService.thyroidFunction" value="1">
                                    <label for="thyroidFunctionYes2">正常</label>
                                    <input type="radio" name="thyroidFunction" id="thyroidFunctionNo2" v-model="medicalService.thyroidFunction" value="2">
                                    <label for="thyroidFunctionNo2">异常</label>
                                </div>
                                <div v-if="medicalService.thyroidFunction == 2" class="sign_content third" style="margin-left:0px;margin-bottom:20px;">
                                    <div style="margin-bottom:0px;margin-right:50px;width:328px;">
                                        <label for="tshThyroid">促甲状腺激素（TSH）：</label>
                                        <input type="text" name="tshThyroid" id="tshThyroid" class="height form-control"
                                               v-model="medicalService.tshThyroid">
                                        <span style="left:88px;">mIU/L</span>
                                    </div>
                                    <div style="margin-bottom:0px;width:328px;">
                                        <label for="tt3Thyroid">血清三碘甲状腺原氨酸（TT3）：</label>
                                        <input type="text" name="tt3Thyroid" id="tt3Thyroid" class="weightGuide form-control weight"
                                               v-model="medicalService.tt3Thyroid">
                                        <span style="left:80px;">nmol/L</span>
                                    </div>
                                    <div class="follow2" style="display: block;width:100%;margin:18px 0;">
                                        <div style="margin-bottom:0px;width:328px;">
                                            <label for="tt4Thyroid">甲状腺素(TT4)：</label>
                                            <input type="text" name="tt4Thyroid" id="tt4Thyroid" class="bmi form-control" v-model="medicalService.tt4Thyroid">
                                            <span style="left:79px;">nmol/L</span>
                                        </div>
                                        <div style="margin-bottom:0px;width:328px;">
                                            <label for="ft3Thyroid">游离三碘甲状腺原氨酸（FT3）：</label>
                                            <input type="text" name="ft3Thyroid" id="ft3Thyroid" class="bmi form-control" v-model="medicalService.ft3Thyroid">
                                            <span style="left:80px;">pmol/L</span>
                                        </div>
                                    </div>
                                    <div class="follow2" style="display: block;width:100%;margin:18px 0;">
                                        <div style="margin-bottom:0px;width:328px;">
                                            <label for="ft4Thyroid">游离甲状腺素(FT4)：</label>
                                            <input type="text" name="ft4Thyroid" id="ft4Thyroid" class="bmi form-control" v-model="medicalService.ft4Thyroid">
                                            <span style="left:80px;">pmol/L</span>
                                        </div>
                                    </div>
                                </div>

                                <div style="margin-bottom:0px;">
                                    <label for="femaleTumor">女性肿瘤标志物全套：</label>
                                    <input type="radio" name="femaleTumor" id="femaleTumorYes2" v-model="medicalService.femaleTumor" value="1">
                                    <label for="femaleTumorYes2">正常</label>
                                    <input type="radio" name="femaleTumor" id="femaleTumorNo2" v-model="medicalService.femaleTumor" value="2">
                                    <label for="femaleTumorNo2">异常</label>
                                </div>
                                <div v-if="medicalService.femaleTumor == 2" class="sign_content third" style="margin-left:0px;margin-bottom:20px;">
                                    <div style="margin-bottom:0px;margin-right:50px;">
                                        <label for="femaleFetoprotein">甲胎蛋白：</label>
                                        <input type="text" name="femaleFetoprotein" id="femaleFetoprotein" class="height form-control"
                                               v-model="medicalService.femaleFetoprotein">
                                        <span style="left:88px;">ng/ml</span>
                                    </div>
                                    <div style="margin-bottom:0px;">
                                        <label for="femaleCarcinoembryonic">癌胚抗原：</label>
                                        <input type="text" name="femaleCarcinoembryonic" id="femaleCarcinoembryonic" class="weightGuide form-control weight"
                                               v-model="medicalService.femaleCarcinoembryonic">
                                        <span style="left:89px;">ng/ml</span>
                                    </div>
                                    <div style="margin-bottom:0px;margin-left:30px;">
                                        <label for="ferritin">铁蛋白：</label>
                                        <input type="text" name="ferritin" id="ferritin" class="bmi form-control" v-model="medicalService.ferritin">
                                        <span style="left:89px;">ng/ml</span>
                                    </div>
                                    <div class="follow2" style="display: block;width:100%;margin:18px 0;">
                                        <div style="margin-bottom:0px;">
                                            <label for="carbohydrate">糖类抗原125：</label>
                                            <input type="text" name="carbohydrate" id="carbohydrate" class="bmi form-control" v-model="medicalService.carbohydrate">
                                            <span style="left:91px;">U/ML</span>
                                        </div>
                                        <div style="margin-bottom:0px;margin-left:48px;">
                                            <label for="femaleCarbohydrateNine">糖类抗原199：</label>
                                            <input type="text" name="femaleCarbohydrateNine" id="femaleCarbohydrateNine" class="bmi form-control" v-model="medicalService.femaleCarbohydrateNine">
                                            <span style="left:91px;">U/ML</span>
                                        </div>
                                        <div style="margin-bottom:0px;margin-left:37px;">
                                            <label for="femaleCarbohydrateThree">糖类抗原153：</label>
                                            <input type="text" name="femaleCarbohydrateThree" id="femaleCarbohydrateThree" class="bmi form-control" v-model="medicalService.femaleCarbohydrateThree">
                                            <span style="left:92px;">U/ML</span>
                                        </div>
                                    </div>
                                    <div class="follow2" style="display: block;width:100%;margin:18px 0;">
                                        <div style="margin-bottom:0px;">
                                            <label for="femaleCarbohydrate">糖类抗原72-4：</label>
                                            <input type="text" name="femaleCarbohydrate" id="femaleCarbohydrate" class="bmi form-control" v-model="medicalService.femaleCarbohydrate">
                                            <span style="left:92px;">U/ML</span>
                                        </div>
                                    </div>
                                </div>

                                <div v-if="medicalService.femaleTumor == 2">
                                    <label for="" style="">补充：</label>
                                    <textarea name="" id="" cols="30" rows="10" style="height:80px;" v-model="medicalService.femaleSupplement"></textarea>
                                </div>
                                <div style="margin-bottom:0px;">
                                    <label for="maleTumor">男性肿瘤标志物全套：</label>
                                    <input type="radio" name="drink2" id="maleTumorYes2" v-model="medicalService.maleTumor" value="1">
                                    <label for="maleTumorYes2">正常</label>
                                    <input type="radio" name="drink2" id="maleTumorNo2" v-model="medicalService.maleTumor" value="2">
                                    <label for="maleTumorNo2">异常</label>
                                </div>
                                <div v-if="medicalService.maleTumor == 2" class="sign_content third" style="margin-left:0px;margin-bottom:20px;">
                                    <div style="margin-bottom:0px;margin-right:50px;">
                                        <label for="maleFetoprotein">甲胎蛋白：</label>
                                        <input type="text" name="maleFetoprotein" id="maleFetoprotein" class="height form-control"
                                               v-model="medicalService.maleFetoprotein">
                                        <span style="left:89px;">ng/ml</span>
                                    </div>
                                    <div style="margin-bottom:0px;">
                                        <label for="maleCarcinoembryonic">癌胚抗原：</label>
                                        <input type="text" name="maleCarcinoembryonic" id="maleCarcinoembryonic" class="weightGuide form-control weight"
                                               v-model="medicalService.maleCarcinoembryonic">
                                        <span style="left:89px;">ng/ml</span>
                                    </div>
                                    <div style="margin-bottom:0px;margin-left:20px;">
                                        <label for="maleCarbohydrate">糖类抗原199：</label>
                                        <input type="text" name="maleCarbohydrate" id="maleCarbohydrate" class="bmi form-control" v-model="medicalService.maleCarbohydrate">
                                        <span style="left:92px;">U/ML</span>
                                    </div>

                                    <div class="follow2" style="display: block;width:100%;margin:18px 0;">
                                        <div style="margin-bottom:0px;margin-right:50px;">
                                            <label for="maleFerritin">铁蛋白：</label>
                                            <input type="text" name="maleFerritin" id="maleFerritin" class="height form-control"
                                                   v-model="medicalService.maleFerritin">
                                            <span style="left:89px;">ng/ml</span>
                                        </div>
                                        <div style="margin-bottom:0px;">
                                            <label for="maleCarbohydrateFive">糖类抗原125：</label>
                                            <input type="text" name="maleCarbohydrateFive" id="maleCarbohydrateFive" class="weightGuide form-control weight"
                                                   v-model="medicalService.maleCarbohydrateFive">
                                            <span style="left:89px;">U/ML</span>
                                        </div>
                                        <div style="margin-bottom:0px;margin-left:53px;">
                                            <label for="maleCarbohydrateThree">糖类抗原153：</label>
                                            <input type="text" name="maleCarbohydrateThree" id="maleCarbohydrateThree" class="bmi form-control" v-model="medicalService.maleCarbohydrateThree">
                                            <span style="left:92px;">U/ML</span>
                                        </div>
                                    </div>
                                    <div class="follow2" style="display: block;width:100%;margin:18px 0;">
                                        <div style="margin-bottom:0px;width: 375px;">
                                            <label for="prostate">总前列腺特异性抗原：</label>
                                            <input type="text" name="prostate" id="prostate" class="bmi form-control" v-model="medicalService.prostate">
                                            <span style="left:89px;">ng/ml</span>
                                        </div>
                                        <div style="margin-bottom:0px;">
                                            <label for="malesCarbohydrate">糖类抗原72-4：</label>
                                            <input type="text" name="malesCarbohydrate" id="malesCarbohydrate" class="bmi form-control" v-model="medicalService.malesCarbohydrate">
                                            <span style="left:92px;">U/ML</span>
                                        </div>
                                    </div>
                                </div>
                                <%--<div>
                                    <label for="" style="margin-left:20px;">补充：</label>
                                    <textarea name="" id="" cols="30" rows="10" style="height:80px;" v-model="medicalService.maleSupplement"></textarea>
                                </div>--%>
                                <div v-if="medicalService.maleTumor == 2" >
                                    <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;margin-top:0px;">
                                        <div style="margin-bottom:0px;width: 375px;">
                                            <label for="maleProstate">游离前列腺特异性抗原：</label>
                                            <input type="text" name="maleProstate" id="maleProstate" class="bmi form-control" v-model="medicalService.maleProstate">
                                            <span style="left:89px;">ng/ml</span>
                                        </div>
                                        <div style="margin-bottom:0px;width: 375px;">
                                            <label for="maleFtprostate">游离/总前列腺特异性抗体(F/T)：</label>
                                            <input type="text" name="maleFtprostate" id="maleFtprostate" class="bmi form-control" v-model="medicalService.maleFtprostate">
                                            <%--<span style="left:92px;">U/ML</span>--%>
                                        </div>
                                    </div>
                                </div>
                                <div v-if="medicalService.maleTumor == 2">
                                    <label for="" >补充：</label>
                                    <textarea name="" id="" cols="30" rows="10" style="height:80px;" v-model="medicalService.malesSupplement"></textarea>
                                </div>
                                <div style="margin-bottom:12px;">
                                    <label for="immunological">免疫功能全套检测组合：</label>
                                    <input type="radio" name="immunological" id="immunologicalYes2" v-model="medicalService.immunological" value="1">
                                    <label for="immunologicalYes2">正常</label>
                                    <input type="radio" name="immunological" id="immunologicalNo2" v-model="medicalService.immunological" value="2">
                                    <label for="immunologicalNo2">异常</label>
                                </div>
                                <div v-if="medicalService.immunological == 2" style="margin-left:20px;">
                                    <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;margin-top:0px;">
                                        <div style="margin-bottom:0px;margin-right:50px;">
                                            <label for="c3Complement">补体C3：</label>
                                            <input type="text" name="c3Complement" id="c3Complement" class="height form-control"
                                                   v-model="medicalService.c3Complement">
                                            <span style="left:109px;">g/L</span>
                                        </div>
                                        <div style="margin-bottom:0px;">
                                            <label for="c4Complement">补体C4：</label>
                                            <input type="text" name="c4Complement" id="c4Complement" class="weightGuide form-control weight"
                                                   v-model="medicalService.c4Complement">
                                            <span style="left:109px;">g/L</span>
                                        </div>
                                        <div style="margin-bottom:0px;">
                                            <label for="igaImmunoglobulin">免疫球蛋白IgA：</label>
                                            <input type="text" name="igaImmunoglobulin" id="igaImmunoglobulin" class="bmi form-control" v-model="medicalService.igaImmunoglobulin">
                                            <span style="left:109px;">g/L</span>
                                        </div>
                                    </div>
                                    <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;margin-top:12px;">
                                        <div style="margin-bottom:0px;margin-right:50px;">
                                            <label for="iggImmunoglobulin">免疫球蛋白IgG：</label>
                                            <input type="text" name="iggImmunoglobulin" id="iggImmunoglobulin" class="height form-control"
                                                   v-model="medicalService.iggImmunoglobulin">
                                            <span style="left:109px;">g/L</span>
                                        </div>
                                        <div style="margin-bottom:0px;margin-left:14px;">
                                            <label for="igmImmunoglobulin">免疫球蛋白IgM：</label>
                                            <input type="text" name="igmImmunoglobulin" id="igmImmunoglobulin" class="weightGuide form-control weight"
                                                   v-model="medicalService.igmImmunoglobulin">
                                            <span style="left:109px;">g/L</span>
                                        </div>
                                        <div style="margin-bottom:0px;margin-left:61px;">
                                            <label for="igeImmunoglobulin">总IgE测定：</label>
                                            <input type="text" name="igeImmunoglobulin" id="igeImmunoglobulin" class="bmi form-control" v-model="medicalService.igeImmunoglobulin">
                                            <span style="left:87px;">IU/mL</span>
                                        </div>
                                    </div>
                                    <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;margin-top:12px;">
                                        <div style="margin-bottom:0px;margin-right:50px;">
                                            <label for="urineChaink">尿κ-轻链：</label>
                                            <input type="text" name="urineChaink" id="urineChaink" class="height form-control"
                                                   v-model="medicalService.urineChaink">
                                            <span style="left:94px;">mg/L</span>
                                        </div>
                                        <div style="margin-bottom:0px;">
                                            <label for="urineChain">尿λ-轻链：</label>
                                            <input type="text" name="urineChain" id="urineChain" class="weightGuide form-control weight"
                                                   v-model="medicalService.urineChain">
                                            <span style="left:94px;">mg/L</span>
                                        </div>
                                        <div style="margin-bottom:0px;margin-left:20px;">
                                            <label for="bloodChain">血λ轻链：</label>
                                            <input type="text" name="bloodChain" id="bloodChain" class="bmi form-control" v-model="medicalService.bloodChain">
                                            <span style="left:109px;">g/L</span>
                                        </div>
                                    </div>
                                    <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;margin-top:12px;">
                                        <div style="margin-bottom:0px;">
                                            <label for="bloodChaink">血K轻链：</label>
                                            <input type="text" name="bloodChaink" id="bloodChaink" class="bmi form-control" v-model="medicalService.bloodChaink">
                                            <span style="left:109px;">g/L</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="way">
                            <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                            <span class="title">检查：</span>
                            <div class="way_content">
                                <div style="margin-bottom:0px;">
                                    <label for="bginspectionDate" style="margin-left:20px;">骨密度  检查日期：</label>
                                    <div class="bginspectionDate date form_date" data-date-format="yyyy-mm-dd HH:mm:ss"
                                         style="display:inline-block !important;width:15%;">
                                        <input id="bginspectionDate" type="text" class="lay-date"
                                               readonly style="width:100% !important;">
                                    </div>
                                    <div>
                                        <div style="width:1000px;margin-left:15px;margin-top:20px;min-width:920px;">
                                            <ul class="month">
                                                <li>区域</li>
                                                <li>骨密度（g/cm2）</li>
                                                <li>T-值</li>
                                            </ul>
                                            <ul class="month">
                                                <li>腰椎1</li>
                                                <li><input type="text" style="border:0px;width:75%;" name="lumbarSpineOneb" v-model="medicalService.lumbarSpineOneb"/></li>
                                                <li><input type="text" style="border:0px;width:75%;" name="lumbarSpineOnet" v-model="medicalService.lumbarSpineOnet"/></li>
                                            </ul>
                                            <ul class="month">
                                                <li>腰椎2</li>
                                                <li><input type="text" style="border:0px;width:75%;" name="lumbarSpineTwob" v-model="medicalService.lumbarSpineTwob"/></li>
                                                <li><input type="text" style="border:0px;width:75%;" name="lumbarSpineTwot" v-model="medicalService.lumbarSpineTwot"/></li>
                                            </ul>
                                            <ul class="month">
                                                <li>腰椎3</li>
                                                <li><input type="text" style="border:0px;width:75%;" name="lumbarSpineThreeb" v-model="medicalService.lumbarSpineThreeb"/></li>
                                                <li><input type="text" style="border:0px;width:75%;" name="lumbarSpineThreet" v-model="medicalService.lumbarSpineThreet"/></li>
                                            </ul>
                                            <ul class="month">
                                                <li>腰椎4</li>
                                                <li><input type="text" style="border:0px;width:75%;" name="lumbarSpineFourb" v-model="medicalService.lumbarSpineFourb"/></li>
                                                <li><input type="text" style="border:0px;width:75%;" name="lumbarSpineFourt" v-model="medicalService.lumbarSpineFourt"/></li>
                                            </ul>
                                            <ul class="month">
                                                <li>L1-L2</li>
                                                <li><input type="text" style="border:0px;width:75%;" name="numonetwob" v-model="medicalService.numonetwob"/></li>
                                                <li><input type="text" style="border:0px;width:75%;" name="numonetwot" v-model="medicalService.numonetwot"/></li>
                                            </ul>
                                            <ul class="month">
                                                <li>L1-L3</li>
                                                <li><input type="text" style="border:0px;width:75%;" name="numonethreeb" v-model="medicalService.numonethreeb"/></li>
                                                <li><input type="text" style="border:0px;width:75%;" name="numonethreet" v-model="medicalService.numonethreet"/></li>
                                            </ul>
                                            <ul class="month">
                                                <li>L1-L4</li>
                                                <li><input type="text" style="border:0px;width:75%;" name="numonefourb" v-model="medicalService.numonefourb"/></li>
                                                <li><input type="text" style="border:0px;width:75%;" name="numonefourt" v-model="medicalService.numonefourt"/></li>
                                            </ul>
                                            <ul class="month">
                                                <li>L2-L3</li>
                                                <li><input type="text" style="border:0px;width:75%;" name="numtwothreeb" v-model="medicalService.numtwothreeb"/></li>
                                                <li><input type="text" style="border:0px;width:75%;" name="numtwothreet" v-model="medicalService.numtwothreet"/></li>
                                            </ul>
                                            <ul class="month">
                                                <li>L2-L4</li>
                                                <li><input type="text" style="border:0px;width:75%;" name="numtwofourb" v-model="medicalService.numtwofourb"/></li>
                                                <li><input type="text" style="border:0px;width:75%;" name="numtwofourt" v-model="medicalService.numtwofourt"/></li>
                                            </ul>
                                            <ul class="month">
                                                <li>L3-L4</li>
                                                <li><input type="text" style="border:0px;width:75%;" name="numthreefourb" v-model="medicalService.numthreefourb"/></li>
                                                <li><input type="text" style="border:0px;width:75%;" name="numthreefourt" v-model="medicalService.numthreefourt"/></li>
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="way_content">
                                <div style="margin-bottom:0px;">
                                    <div>
                                        <div style="width:1000px;margin-left:15px;margin-top:20px;min-width:920px;">
                                            <ul class="month">
                                                <li>区域</li>
                                                <li>骨密度（g/cm2）</li>
                                                <li>T-值</li>
                                            </ul>
                                            <ul class="month">
                                                <li>颈</li>
                                                <li><input type="text" style="border:0px;width:75%;" name="neckb" v-model="medicalService.neckb"/></li>
                                                <li><input type="text" style="border:0px;width:75%;" name="neckt" v-model="medicalService.neckt"/></li>
                                            </ul>
                                            <ul class="month">
                                                <li>全髋</li>
                                                <li><input type="text" style="border:0px;width:75%;" name="totalHipb" v-model="medicalService.totalHipb"/></li>
                                                <li><input type="text" style="border:0px;width:75%;" name="totalHipt" v-model="medicalService.totalHipt"/></li>
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="way">
                            <span style="width:5px;padding-bottom:25px;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                            <label for="xinspectionDate" style="margin-left:20px;">胸腰椎X线侧位片  检查日期：</label>
                            <div class="xinspectionDate date form_date" data-date-format="yyyy-mm-dd HH:mm:ss"
                                 style="display:inline-block !important;width:15%;">
                                <input id="xinspectionDate" type="text" class="lay-date"
                                       readonly style="width:100% !important;">
                            </div>
                            <label for="" style="margin-left:20px;">结果：</label>
                            <textarea name="" id="resultX" cols="10" rows="10" style="height:80px;margin-left:50px;" v-model="medicalService.resultx"></textarea>
                        </div>
                    </div>
                    <div class="way">
                        <span style="width:5px;padding-bottom:25px;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                        <label for="ctinspectionDate" style="margin-left:20px;">胸腰椎CT平扫  检查日期：</label>
                        <div class="ctinspectionDate date form_date" data-date-format="yyyy-mm-dd HH:mm:ss"
                             style="display:inline-block !important;width:15%;">
                            <input id="ctinspectionDate" type="text" class="lay-date"
                                   readonly style="width:100% !important;">
                        </div>
                        <label for="" style="margin-left:20px;">结果：</label>

                        <textarea name="" id="resultCT" cols="10" rows="10" style="height:80px;margin-left:50px;" v-model="medicalService.resultct"></textarea>
                    </div>
                </div>
                <div class="way">
                    <span style="width:5px;padding-bottom:25px;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                    <label for="mrinspectionDate" style="margin-left:20px;">胸腰椎MR平扫  检查日期：</label>
                    <div class="mrinspectionDate date form_date" data-date-format="yyyy-mm-dd HH:mm:ss"
                         style="display:inline-block !important;width:15%;">
                        <input id="mrinspectionDate" type="text" class="lay-date"
                               readonly style="width:100% !important;">
                    </div>

                    <label for="" style="margin-left:20px;">结果：</label>
                    <textarea name="" id="resultMR" cols="10" rows="10" style="height:80px;margin-left:50px;" v-model="medicalService.resultmr"></textarea>
                </div>
                <div class="way">
                    <div class="illness"
                         style="margin-top:20px;background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);padding-bottom:10px;">
                        <div>
                            <div style="margin-left:19px;">
                                <div style="margin-bottom:10px;">
                                    <h3 style="display:inline-block;margin-top:20px;">用药信息</h3>
                                    <button type="button" class="btn btn-info" @click="addMedical()" v-show="!slide"
                                            style="margin-top:20px;">更多
                                    </button>
                                </div>
                                <div id="table">
                                    <table id="example1" class="display" cellspacing="10" width="95%">
                                        <thead>
                                        <tr>
<%--                                            <th style="width:25px;">&nbsp;</th>--%>
                                            <th style="width:90px;">序号</th>
                                            <th style="display:1%;"></th>
                                            <th>药名</th>
                                            <th style="width:10%;">数量（剂量）</th>
                                            <%--<th>规格</th>--%>
                                            <th>用法用量</th>
                                            <th>药物调整</th>
                                            <th>开立医生</th>
                                            <th>开立时间</th>
                                        </tr>
                                        </thead>
                                    </table>
                                    <p v-show="slide">暂无数据</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="way">
                    <span style="width:5px;padding-bottom:25px;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                    <span class="title">下次检查项目：</span>
                    <div class="way_content">
                        <div style="padding:6px 25px;width:100%;margin-bottom: 0px;vertical-align: top;" id="nextInspection" ref="nextInspection">
                                        <span v-for="(item,key) in nextInspection" :key="key" style="display:inline-block;margin:0 20px 18px 0;">
                                            <input type="checkbox" :name="item.checkName" :checked="item.check" :value="item.id" :id="item.forId" @click="medicineTypeCheckMc(item)" />
                                            <label :for="item.forId">{{item.name}}</label>
                                        </span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script>
      var vm = new Vue({
        el : "#main",
        data: {
          infor: [], // 病人基本信息 data
          synchronous: false,
          saveDisabled:false,
          lineChestSelect:[],
          medical:false,
          medicalList:[],
          BMI:'',
          type:'',
          chemistryName:'',
          productName:'',
          consumption:'',
          frequency:'',
          mode:'',
          useStop:'',
          DXA:false,
          score:false,
          showCurd:false,
          illnessData: [
            {
              name: '既往体健',
              id:'',
              list: []
            },
            {
              name: '风湿系统疾病',
              id:'rheumatismType',
              list: [
                {
                  name: '类风湿性关节炎',
                  id: '1',
                  forId: 'ysxjb1',
                  checked:false
                },
                {
                  name: '骨关节炎',
                  id: '2',
                  forId: 'ysxjb2',
                  checked:false
                },
                {
                  name: '脊椎关节炎',
                  id: '3',
                  forId: 'ysxjb3',
                  checked:false
                },
                {
                  name: '血管炎',
                  id: '4',
                  forId: 'ysxjb4',
                  checked:false
                },
                {
                  name: '原发性干燥综合征',
                  id: '5',
                  forId: 'ysxjb5',
                  checked:false
                },
                {
                  name: '系统性红斑狼疮',
                  id: '6',
                  forId: 'ysxjb6',
                  checked:false
                },
                {
                  name: '系统性硬化症',
                  id: '7',
                  forId: 'ysxjb7',
                  checked:false
                },
                {
                  name: '多发性肌炎和皮肌炎',
                  id: '8',
                  forId: 'ysxjb8',
                  checked:false
                },
                {
                  name: '自身免疫性肝病',
                  id: '9',
                  forId: 'ysxjb9',
                  checked:false
                },
                {
                  name: '其他',
                  id: '10',
                  forId: 'ysxjb10',
                  checked:false
                }
              ]
            },
            {
              name: '内分泌及代谢系统疾病',
              id:'endocrineType',
              list: [
                {
                  name: '甲状腺功能亢进症',
                  id: '1',
                  forId: 'nfm1',
                  checked:false
                },
                {
                  name: '甲状旁腺功能亢进症',
                  id: '2',
                  forId: 'nfm2',
                  checked:false
                },
                {
                  name: '库欣综合征',
                  id: '3',
                  forId: 'nfm3',
                  checked:false
                },
                {
                  name: '1型糖尿病',
                  id: '4',
                  forId: 'nfm4',
                  checked:false
                },
                {
                  name: '2型糖尿病',
                  id: '5',
                  forId: 'nfm5',
                  checked:false
                },
                {
                  name: '性腺功能减退',
                  id: '6',
                  forId: 'nfm6',
                  checked:false
                },
                {
                  name: '其他',
                  id: '7',
                  forId: 'nfm7',
                  checked:false
                }
              ]
            },
            {
              name: '循环系统疾病',
              id:'circulatoryType',
              list: [
                {
                  name: '高血压',
                  id: '1',
                  forId: 'xhxt1',
                  checked:false
                },
                {
                  name: '冠状动脉粥样硬化心脏病',
                  id: '2',
                  forId: 'xhxt2',
                  checked:false
                },
                {
                  name: '高血脂症',
                  id: '3',
                  forId: 'xhxt3',
                  checked:false
                },
                {
                  name: '其他',
                  id: '4',
                  forId: 'xhxt',
                  checked:false
                }
              ]
            },
            {
              name: '呼吸系统疾病',
              id:'breathingType',
              list: [
                {
                  name: '支气管哮喘',
                  id: '1',
                  forId: 'hxxt1',
                  checked:false
                },
                {
                  name: '慢性阻塞性肺疾病',
                  id: '2',
                  forId: 'hxxt2',
                  checked:false
                },
                {
                  name: '其他',
                  id: '3',
                  forId: 'hxxt3',
                  checked:false
                },
              ]
            },
            {
              name: '神经及精神系统疾病',
              id:'nerveType',
              list: [
                {
                  name: '神经性厌食症',
                  id: '1',
                  forId: 'sjxt1',
                  checked:false
                },
                {
                  name: '脑血管病',
                  id: '2',
                  forId: 'sjxt2',
                  checked:false
                },
                {
                  name: '重症肌无力',
                  id: '3',
                  forId: 'sjxt3',
                  checked:false
                },
                {
                  name: '其他',
                  id: '4',
                  forId: 'sjxt4',
                  checked:false
                },
              ]
            },
            {
              name: '消化系统疾病',
              id:'digestionType',
              list: [
                {
                  name: '肝硬化',
                  id: '1',
                  forId: 'xhxtjb1',
                  checked:false
                },
                {
                  name: '吸收不良综合征',
                  id: '2',
                  forId: 'xhxtjb2',
                  checked:false
                },
                {
                  name: '炎症性肠病（溃疡性结肠炎；克罗恩病）',
                  id: '3',
                  forId: 'xhxtjb3',
                  checked:false
                },
                {
                  name: '乳糜泻',
                  id: '4',
                  forId: 'xhxtjb4',
                  checked:false
                },
                {
                  name: '胃部大切除术后',
                  id: '5',
                  forId: 'xhxtjb5',
                  checked:false
                },
                {
                  name: '其他',
                  id: '6',
                  forId: 'xhxtjb6',
                  checked:false
                },
              ]
            },
            {
              name: '泌尿系统疾病',
              id:'urineType',
              list: [
                {
                  name: '慢性肾功能不全或衰竭',
                  id: '1',
                  forId: 'mnxt1',
                  checked:false
                },
                {
                  name: '肾小管性疾病',
                  id: '2',
                  forId: 'mnxt2',
                  checked:false
                },
                {
                  name: '原发性胃小球肾病',
                  id: '3',
                  forId: 'mnxt3',
                  checked:false
                },
                {
                  name: '肾淀粉样变性',
                  id: '4',
                  forId: 'mn4',
                  checked:false
                },
                {
                  name: '其他',
                  id: '5',
                  forId: 'mn5',
                  checked:false
                }
              ]
            },
            {
              name: '血液系统疾病',
              id:'bloodType',
              list: [
                {
                  name: '白血病',
                  id: '1',
                  forId: 'xyxt1',
                  checked:false
                },
                {
                  name: '骨髓增长异常综合征',
                  id: '2',
                  forId: 'xyxt2',
                  checked:false
                },
                {
                  name: '其他',
                  id: '3',
                  forId: 'xyxt3',
                  checked:false
                }
              ]
            },
            {
              name: '先天性及遗传性疾病',
              id:'inheritanceType',
              list: [
                {
                  name: '马凡综合征',
                  id: '1',
                  forId: 'xtxyc1',
                  checked:false
                },
                {
                  name: '血色病',
                  id: '2',
                  forId: 'xtxyc2',
                  checked:false
                },
                {
                  name: '卟啉病',
                  id: '3',
                  forId: 'xtxyc3',
                  checked:false
                },
                {
                  name: '成骨不全',
                  id: '4',
                  forId: 'xtxyc4',
                  checked:false
                },
                {
                  name: '其他',
                  id: '5',
                  forId: 'xtxyc5',
                  checked:false
                }
              ]
            },
            {
              name: '其他',
              id:'otherType',
              list: [
                {
                  name: '原发性骨肿瘤',
                  id: '1',
                  forId: 'other1',
                  checked:false
                },
                {
                  name: '继发性骨肿瘤',
                  id: '2',
                  forId: 'other2',
                  checked:false
                },
                {
                  name: '乳腺癌',
                  id: '3',
                  forId: 'other3',
                  checked:false
                },
                {
                  name: '艾滋病',
                  id: '4',
                  forId: 'other4',
                  checked:false
                },
                {
                  name: '其他',
                  id: '5',
                  forId: 'other5',
                  checked:false
                }
              ]
            }
          ],
          idCard:'',
          id:'',
          checkData:{
            doctorName:'',
            accompanyTime:'',
            accompanyType:'',
            doctorId:'',
            nextAccompanyTime:'',
            medicalList:[],
            linePhoto:'',
            // 当点击修改的时候才有的对应 id
            id:'',
            // 身份证
            idCard:'',
            // 患者症状描述
            msg:'',
            // 是否吸烟
            smoke:'',
            // 是否饮酒
            drink:'',
            // 膳食情况
            diet:'',
            // 引用类型
            drinkingType:[],
            // 睡眠时间
            sleepTime:'',
            // 日晒时间
            sunTime:'',
            // 锻炼频率
            sportTimes:'',
            // 锻炼时间
            sportTime:'',
            walkMsg:'',
            // 其他生活习惯
            standHelp:'',
            liveMsg:'',
            // 风湿疾病
            rheumatismType:[],
            // 内分泌及代谢系统疾病
            endocrineType:[],
            // 循环系统疾病
            circulatoryType:[],
            // 呼吸系统疾病
            breathingType:[],
            // 神经及精神系统疾病
            nerveType:[],
            // 消化系统疾病
            digestionType:[],
            // 泌尿系统疾病
            urineType:[],
            // 血液系统疾病
            bloodType:[],
            // 先天性及遗传性疾病
            inheritanceType:[],
            // 其他疾病
            otherType:[],
            // 抗骨松药物
            drug:'',
            // 肾上腺皮质激素
            hormone:'',
            // 性激素及其相关药物
            sexHomone:'',
            // 其他药物使用情况
            otherDrug:[],
            // 骨折
            fracture:'',
            // 手术史
            operation:[],
            // 健康疾病情况
            healthy:'',
            // 婚姻及生育情况
            marriage:'',
            // 家庭成员病发情况
            family:'',
            // 身体检查情况
            body:'',
            // 判定病症情况
            disease:'',
            // 随诊日期
            checkTime:'',
            // 系首诊后
            afterDate:'',
            // 随诊类型
            checkType:'',
            // 身高
            height:'',
            // 体重
            weight:'',
            // 诊疗结论
            checkData:'',
            // 是否遵医嘱用药
            usdDrug:'',
            // 腰背痛
            waistType:'',
            // 腰背痛描述
            waistMsg:'',
            // 骨痛
            boneType:'',
            // 骨痛描述
            boneMsg:'',
            // 肌肉抽搐
            muscleType:'',
            // 肌肉抽搐描述
            muscleMsg:'',
            // 乏力
            powerType:'',
            // 乏力描述
            powerMsg:'',
            // 行走距离
            walkType:'',
            // 上认诊疗后有无骨折
            newFracture:'',
            // 行走状态
            walkState:'',
            // 站立 起来是否需要帮助
            standHelp:'',
            // 其它说明情况
            checkOther:'',
            // 本次检查项目
            checkProject:[],
            // 下次检查项目
            checkProjectNext:[],
            // 骨形成
            formation:'',
            // 骨形成检查时间
            formationTime:'',
            formationALP:'',
            formationBALP:'',
            formationOC:'',
            formationPICP:'',
            formationPINP:'',
            // 骨吸收
            absorb:'',
            // 骨吸收检查时间
            absorbTime:'',
            absorbTRACP:'',
            absorbSCTX:'',
            absorbPyr:'',
            absorbDPyr:'',
            absorbUCTX:'',
            absorbUNTX:'',
            // 骨代谢
            metabolize:'',
            // 骨代谢时间
            metabolizeTime:'',
            metabolizePTH:'',
            metabolizeCT:'',
            metabolizeCa:'',
            metabolizeP:'',
            metabolize25OHD3:'',
            metabolize125OHD3:'',
            beitaCTX:'',
            liverSGPT:'',
            liverSGOT:'',
            liverTBIL:'',
            bloodKLC:'',
            bloodLLC:'',
            // X检查
            lineRay:'',
            // X检查时间
            lineTime:'',
            // 骨折情况
            lineFracture:[],
            lineChest:[],
            lineMsg:'',
            // 血常规
            blood:'',
            // 血常规检查时间
            bloodTime:'',
            // 尿常规
            urine:'',
            // 尿常规检查时间
            urineTime:'',
            bloodWBC:'',
            bloodRBC:'',
            bloodHb:'',
            bloodPLT:'',
            bloodPINP:'',
            // 尿常规状态
            urineState:'',
            // 尿常规异常信息
            urineMsg:'',
            // 生化检查
            biochemistry:'',
            // 生化检查时间
            biochemistryTime:'',
            biochemistryCr:'',
            biochemistryUA:'',
            biochemistryUrea:'',
            biochemistryESR:'',
            // 甲状腺检查
            thyroid:'',
            // 甲状腺检查时间
            thyroidTime:'',
            thyroidTT3:'',
            thyroidTT4:'',
            thyroidFT3:'',
            thyroidFT4:'',
            thyroidTSH:'',
            // 是否开药
            prescribingDrugs:'',
            // 是否完善上次
            prescribingDrugsPre:'',
            sportMode:'',
            // 图片文件
            file:'',
            // 用药数据
            drugs:[]
          },
          // 胸椎骨折情况
          lineChest:[
            {
              name:'不详',
              id:'1',
              checkName:'lineChest',
              forId:'lineChest1',
              check:false
            },
            {
              name:'T1',
              id:'2',
              checkName:'lineChest',
              forId:'lineChest2',
              check:false
            },
            {
              name:'T2',
              id:'3',
              checkName:'lineChest',
              forId:'lineChest3',
              check:false
            },
            {
              name:'T3',
              id:'4',
              checkName:'lineChest',
              forId:'lineChest4',
              check:false
            },
            {
              name:'T4',
              id:'5',
              checkName:'lineChest',
              forId:'lineChest5',
              check:false
            },
            {
              name:'T5',
              id:'6',
              checkName:'lineChest',
              forId:'lineChest6',
              check:false
            },
            {
              name:'T6',
              id:'7',
              checkName:'lineChest',
              forId:'lineChest7',
              check:false
            },
            {
              name:'T7',
              id:'8',
              checkName:'lineChest',
              forId:'lineChest8',
              check:false
            },
            {
              name:'T8',
              id:'9',
              checkName:'lineChest',
              forId:'lineChest9',
              check:false
            },
            {
              name:'T9',
              id:'10',
              checkName:'lineChest',
              forId:'lineChest10',
              check:false
            },
            {
              name:'T10',
              id:'11',
              checkName:'lineChest',
              forId:'lineChest11',
              check:false
            },
            {
              name:'T11',
              id:'12',
              checkName:'lineChest',
              forId:'lineChest12',
              check:false
            },
            {
              name:'T12',
              id:'13',
              checkName:'lineChest',
              forId:'lineChest13',
              check:false
            }
          ],
          // 骨折
          lineFracture:[
            {
              name:'无',
              id:'1',
              checkName:'lineFracture',
              forId:'lineFracture1',
              check:false
            },
            {
              name:'胸椎',
              id:'2',
              checkName:'lineFracture',
              forId:'lineFracture2',
              check:false
            },
            {
              name:'腰椎',
              id:'3',
              checkName:'lineFracture',
              forId:'lineFracture3',
              check:false
            },
            {
              name:'骨盆',
              id:'4',
              checkName:'lineFracture',
              forId:'lineFracture4',
              check:false
            },
            {
              name:'股骨干',
              id:'5',
              checkName:'lineFracture',
              forId:'lineFracture5',
              check:false
            },
            {
              name:'股骨颈',
              id:'6',
              checkName:'lineFracture',
              forId:'lineFracture6',
              check:false
            },
            {
              name:'粗隆间',
              id:'7',
              checkName:'lineFracture',
              forId:'lineFracture7',
              check:false
            },
            {
              name:'胫骨',
              id:'8',
              checkName:'lineFracture',
              forId:'lineFracture8',
              check:false
            },
            {
              name:'腓骨',
              id:'9',
              checkName:'lineFracture',
              forId:'lineFracture9',
              check:false
            },
            {
              name:'桡骨',
              id:'10',
              checkName:'lineFracture',
              forId:'lineFracture10',
              check:false
            },
            {
              name:'尺骨',
              id:'11',
              checkName:'lineFracture',
              forId:'lineFracture11',
              check:false
            },
            {
              name:'肱骨',
              id:'12',
              checkName:'lineFracture',
              forId:'lineFracture12',
              check:false
            },
            {
              name:'肋骨',
              id:'13',
              checkName:'lineFracture',
              forId:'lineFracture13',
              check:false
            },
            {
              name:'脚踝',
              id:'14',
              checkName:'lineFracture',
              forId:'lineFracture14',
              check:false
            }
          ],
          // 本次检查项目
          checkProject:[
            {
              name:'未作任何检查',
              id:'1',
              checkName:'checkProject',
              forId:'checkProject1',
              check:false
            },
            {
              name:'DXA',
              id:'2',
              checkName:'checkProject',
              forId:'checkProject2',
              check:false
            },
            {
              name:'超声骨测量',
              id:'3',
              checkName:'checkProject',
              forId:'checkProject3',
              check:false
            },
            {
              name:'X线检查',
              id:'4',
              checkName:'checkProject',
              forId:'checkProject4',
              check:false
            },
            {
              name:'CT检查',
              id:'5',
              checkName:'checkProject',
              forId:'checkProject5',
              check:false
            },
            {
              name:'MRI检查',
              id:'6',
              checkName:'checkProject',
              forId:'checkProject6',
              check:false
            },
            {
              name:'骨代谢检查',
              id:'7',
              checkName:'checkProject',
              forId:'checkProject7',
              check:false
            },
            {
              name:'实验室检查',
              id:'8',
              checkName:'checkProject',
              forId:'checkProject8',
              check:false
            },
            {
              name:'未作任何检查',
              id:'9',
              checkName:'checkProject',
              forId:'checkProject9',
              check:false
            }
          ],
          checkProjectNext:[
            {
              name:'未作任何检查',
              id:'1',
              checkName:'checkProject',
              forId:'checkProjectNext1',
              check:false
            },
            {
              name:'DXA',
              id:'2',
              checkName:'checkProject',
              forId:'checkProjectNext2',
              check:false
            },
            {
              name:'超声骨测量',
              id:'3',
              checkName:'checkProject',
              forId:'checkProjectNext3',
              check:false
            },
            {
              name:':X线检查',
              id:'4',
              checkName:'checkProject',
              forId:'checkProjectNext4',
              check:false
            },
            {
              name:'CT检查',
              id:'5',
              checkName:'checkProject',
              forId:'checkProjectNext5',
              check:false
            },
            {
              name:'MRI检查',
              id:'6',
              checkName:'checkProject',
              forId:'checkProjectNext6',
              check:false
            },
            {
              name:'骨代谢检查',
              id:'7',
              checkName:'checkProject',
              forId:'checkProjectNext7',
              check:false
            },
            {
              name:'实验室检查',
              id:'8',
              checkName:'checkProject',
              forId:'checkProjectNext8',
              check:false
            },
            {
              name:'未作任何检查',
              id:'9',
              checkName:'checkProject',
              forId:'checkProjectNext9',
              check:false
            }
          ],
          // 手术史
          operation:[
            {
              name:'无',
              id:'1',
              checkName:'operation',
              forId:'operation1',
              check:false
            },
            {
              name:'子宫切除',
              id:'2',
              checkName:'operation',
              forId:'operation2',
              check:false
            },
            {
              name:'卵巢切除',
              id:'3',
              checkName:'operation',
              forId:'operation3',
              check:false
            },
            {
              name:'甲状腺切除',
              id:'4',
              checkName:'operation',
              forId:'operation4',
              check:false
            },
            {
              name:'甲状旁腺切除',
              id:'5',
              checkName:'operation',
              forId:'operation5',
              check:false
            },
            {
              name:'使用过骨水泥',
              id:'6',
              checkName:'operation',
              forId:'operation6',
              check:false
            },
            {
              name:'其他',
              id:'7',
              checkName:'operation',
              forId:'operation7',
              check:false
            }
          ],
          // 其他药物使用情况
          otherDrug:[
            {
              name:'无',
              id:'1',
              checkName:'otherDrug',
              forId:'otherDrug1',
              check:false
            },
            {
              name:'抗癫痫药物',
              id:'2',
              checkName:'otherDrug',
              forId:'otherDrug2',
              check:false
            },
            {
              name:'细胞毒或免疫抑制剂',
              id:'3',
              checkName:'otherDrug',
              forId:'otherDrug3',
              check:false
            },
            {
              name:'铝制剂',
              id:'4',
              checkName:'otherDrug',
              forId:'otherDrug4',
              check:false
            },
            {
              name:'锂制剂',
              id:'5',
              checkName:'otherDrug',
              forId:'otherDrug5',
              check:false
            },
            {
              name:'肝素',
              id:'6',
              checkName:'otherDrug',
              forId:'otherDrug6',
              check:false
            },
            {
              name:'芳香化酶抑制剂',
              id:'7',
              checkName:'otherDrug',
              forId:'otherDrug7',
              check:false
            },
            {
              name:'其他',
              id:'8',
              checkName:'otherDrug',
              forId:'otherDrug8',
              check:false
            }
          ],
          // 饮用类型数组
          drinkingType:[
            {
              name:'白开水',
              id:'1',
              checkName:'drinkingType',
              forId:'drinkingType1',
              check:false
            },
            {
              name:'浓茶水',
              id:'2',
              checkName:'drinkingType',
              forId:'drinkingType2',
              check:false
            },
            {
              name:'乳制品',
              id:'3',
              checkName:'drinkingType',
              forId:'drinkingType3',
              check:false
            },
            {
              name:'碳酸饮料',
              id:'4',
              checkName:'drinkingType',
              forId:'drinkingType4',
              check:false
            },
            {
              name:'咖啡',
              id:'5',
              checkName:'drinkingType',
              forId:'drinkingType5',
              check:false
            },
            {
              name:'其它饮料',
              id:'6',
              checkName:'drinkingType',
              forId:'drinkingType6',
              check:false
            }
          ],
          // 最常用锻炼方式
          sportMode:[
            {
              name:'散步',
              id:'1',
              forId:'sportMode1',
              checkName:'sportMode',
              check:false
            },
            {
              name:'快步走',
              id:'2',
              forId:'sportMode2',
              checkName:'sportMode',
              check:false
            },
            {
              name:'慢跑',
              id:'3',
              forId:'sportMode3',
              checkName:'sportMode',
              check:false
            },
            {
              name:'跳舞',
              id:'4',
              forId:'sportMode4',
              checkName:'sportMode',
              check:false
            },
            {
              name:'太极拳',
              id:'5',
              forId:'sportMode5',
              checkName:'sportMode',
              check:false
            },
            {
              name:'爬山/楼梯',
              id:'6',
              forId:'sportMode6',
              checkName:'sportMode',
              check:false
            },
            {
              name:'太极拳',
              id:'7',
              forId:'sportMode7',
              checkName:'sportMode',
              check:false
            },
            {
              name:'健身器材',
              id:'8',
              forId:'sportMode8',
              checkName:'sportMode',
              check:false
            },
            {
              name:'打球',
              id:'9',
              forId:'sportMode9',
              checkName:'sportMode',
              check:false
            },
            {
              name:'游泳',
              id:'10',
              forId:'sportMode10',
              checkName:'sportMode',
              check:false
            },
            {
              name:'其他',
              id:'11',
              forId:'sportMode11',
              checkName:'sportMode',
              check:false
            }
          ],
          reads:[],
          checkData2:[],
          testTime:[],
          reads1:[],
          checkData1:[],
          testTime1:[],
          medicalService: {
                followDate: '',//随访时间
                naxtFollowDate: '',//下次随访时间
                chiefComplaint: '',//主诉（腰背痛、骨痛、肌肉抽搐、乏力、行走距离、新发骨折等）
                explanations: '',//其他说明的情况
                physical: '',//查体
                diagnosis: '',//诊断
                classification: '',//分级
                femaleCarbohydrateNine: '',//糖类抗原199
                femaleCarbohydrateThree: '',//糖类抗原153
                maleFerritin: '',//铁蛋白
                maleCarbohydrateFive: '',//糖类抗原125
                maleCarbohydrateThree: '',//糖类抗原153

                inspectionDate: '',//检查日期
                bginspectionDate: '',//检查日期
                xinspectionDate: '',//胸腰椎X线侧位片
                mrinspectionDate: '',//胸腰椎MR平扫
                ctinspectionDate: '',//胸腰椎CT平扫
                ysinspectionDate: '',// 用药情况
                balpMedicine: '',//骨特异性碱性磷酸酶（BALP)
                ocMedicine: '',//骨钙素（OC）
                pnpMedicine: '',//总I型胶原氨基端延长肽（P1NP）
                ctxMedicine: '',//β胶原联降解产物（β-CTX）
                wssdMedicine: '',//25-羟维生素D
                pthMedicine: '',//甲状旁腺素（PTH)
                calcium: '',//总钙
                phosphorus: '',//磷
                routineBloodTest: '',//血常规正常
                whiteBloodCell: '',//白细胞
                redBloodCell: '',//红细胞
                hemoglobin: '',// 血红蛋白
                platelet: '',// 血小板
                urinalysis: '',// 尿常规正常
                urineProtein: '',// 尿蛋白
                bld: '',// 尿隐血
                urineSugar: '',// 尿糖
                esr: '',// 血沉
                biochemistry: '',// 生化正常
                totalProtein: '',// 总蛋白
                albumin: '',// 白蛋白
                globulin: '',// 球蛋白
                totalBilirubin: '',// 总胆红素
                alanine: '',// 谷丙转氨酶
                aspartate: '',// 谷草转氨酶
                alkaline: '',// 碱性磷酸酶
                creatinine: '',// 肌酐
                thyroidFunction: '',// 甲状腺功能7项正常
                tshThyroid: '',// 促甲状腺激素（TSH）
                tt3Thyroid: '',// 血清三碘甲状腺原氨酸（TT3）
                tt4Thyroid: '',// 甲状腺素(TT4)
                ft3Thyroid: '',// 游离三碘甲状腺原氨酸（FT3）
                ft4Thyroid: '',// 游离甲状腺素(FT4)
                femaleTumor: '',// 女性肿瘤标志物全套正常
                femaleFetoprotein: '',// 甲胎蛋白
                femaleCarcinoembryonic: '',// 癌胚抗原
                ferritin: '',// 铁蛋白
                carbohydrate: '',// 糖类抗原
                femaleCarbohydrate: '',// 糖类抗原72-4
                femaleSupplement: '',// 补充
                maleTumor: '',// 男性肿瘤标志物全套正常
                maleFetoprotein: '',// 甲胎蛋白
                maleCarcinoembryonic: '',// 癌胚抗原
                maleCarbohydrate: '',// 糖类抗原
                prostate: '',// 总前列腺特异性抗原
                malesCarbohydrate: '',// 糖类抗原72-4
                maleSupplement: '',// 补充
                maleProstate: '',// 游离前列腺特异性抗原
                maleFtprostate: '',// 游离/总前列腺特异性抗体(F/T)
                malesSupplement: '',// 补充
                immunological: '',// 免疫功能全套检测组合正常
                c3Complement: '',// 补体C3
                c4Complement: '',// 补体C4
                igaImmunoglobulin: '',// 免疫球蛋白IgA
                iggImmunoglobulin: '',// 免疫球蛋白IgG
                igmImmunoglobulin: '',// 免疫球蛋白IgM
                igeImmunoglobulin: '',// 总IgE测定
                urineChaink: '',// 尿κ-轻链
                urineChain: '',// 尿λ-轻链
                bloodChain: '',// 血λ轻链
                bloodChaink: '',// 血K轻链
                lumbarSpineOneb: '',// 腰椎1-骨密度
                lumbarSpineOnet: '',// 腰椎1-T-值
                lumbarSpineTwob: '',// 腰椎2-骨密度
                lumbarSpineTwot: '',// 腰椎2-T-值
                lumbarSpineThreeb: '',// 腰椎3-骨密度
                lumbarSpineThreet: '',// 腰椎3-T-值
                lumbarSpineFourb: '',// 腰椎4-骨密度
                lumbarSpineFourt: '',// 腰椎4-T-值
                numonetwob: '',// L1-L2-骨密度
                numonetwot: '',// L1-L2-T-值
                numonethreeb: '',// L1-L3-骨密度
                numonethreet: '',// L1-L3-T-值
                numonefourb: '',// L1-L4-骨密度
                numonefourt: '',//L1-L4-T-值
                numtwothreeb: '',//L2-L3-骨密度
                numtwothreet: '',//L2-L3-T-值
                numtwofourb: '',//L2-L4-骨密度
                numtwofourt: '',//L2-L4-T-值
                numthreefourb: '',//L3-L4-骨密度
                numthreefourt: '',//L3-L4-T-值
                neckb: '',//颈-骨密度
                neckt: '',//颈-T-值
                totalHipb: '',//全髋-b-值
                totalHipt: '',//全髋-T-值
                resultx: '',//结果
                resultct: '',//结果
                resultmr: '',//结果
                examination: '',//药物名称
                dosage: '',//用法用量
                drug : '',//药物调整及时间
                nextInspection: '',//下次检查项目
                id: '',
                // 身份证
                idCard: '',
                accompanyBlId: '',
            },
            nextInspection:[
                {
                    name: 'DXA',
                    id: '1',
                    checkName: 'nextInspection',
                    forId: 'nextInspection1',
                    check:false
                },
                {
                    name: '胸腰椎X线',
                    id: '2',
                    checkName: 'nextInspection',
                    forId: 'nextInspection2',
                    check: false
                },
                {
                    name: ' CT',
                    id: '3',
                    checkName: 'nextInspection',
                    forId: 'nextInspection3',
                    check: false
                },
                {
                    name: 'MR',
                    id: '4',
                    checkName: 'nextInspection',
                    forId: 'nextInspection4',
                    check:false
                },
                {
                    name: '骨代谢',
                    id: '5',
                    checkName: 'nextInspection',
                    forId: 'nextInspection5',
                    check: false
                },
                {
                    name: '常规化验',
                    id: '6',
                    checkName: 'nextInspection',
                    forId: 'nextInspection5',
                    check: false
                },{
                    name: '无',
                    id: '0',
                    checkName: 'nextInspection',
                    forId: 'nextInspection6',
                    check: false
                },
            ],
            slide: false,
            serId:'',
            idCardFw:'',
        },
        mounted(){
           initLayDate('#inspectionDate');
           initLayDate('#bginspectionDate');
           initLayDate('#xinspectionDate');
           initLayDate('#mrinspectionDate');
           initLayDate('#ctinspectionDate');
           /*initLayDate('#ysinspectionDate');*/


          let that = this;
          let search = location.search.split('?')[1]
//            // 初始化获取默认今天
          let [namr,value] = search.split('&')[0].split('=');
          that.idCard= value;
          that.checkData.idCard = that.idCard;
          let [idName,idValue] = search.split('&')[1].split('=');
          serId = [idName,idValue][1]
          // console.log(serId)
          // console.log([idName,idValue])
          // console.log([namr,value][1])
          this.idCardFw = '${URL_PATIENT_MEDICALINFOQh}?idCard='+[namr,value][1]

          that.initTable(this.idCardFw);
          // 获取用药数据
          var date = that.getNowFormatDate();
          that.checkData.accompanyTime = date;
          var year = date.slice(0,4)
          // 获取月份
          var month = date.slice(5,7)
          if( parseInt(month) + 6 > 12 ){
            month = parseInt(month) + 6 -12
            year = parseInt(year) + 1
          }else{
            month = parseInt(month) + 6
          }
          if( String(month).length <= 1 ){
            month = '0' + month
          }
          // 获取日期
          var day = date.slice(8,10)
          if( parseInt(month) === 2 ){
            if( parseInt(day) > 28 ){
              day = '01'
            }
          }else if( parseInt(month) === 4 && parseInt(month) === 6 && parseInt(month) === 9 && parseInt(month) === 11 ){
            if( parseInt(day) > 30 ){
              day = '01'
            }
          }
          var time = year + '-' + month + '-' + day;
          that.checkData.nextAccompanyTime = time;

            // 获取病人基本信息
            $.ajax({
                url: "${URL_PATIENT_PATIENTINFO}",
                type: 'post',
                dataType: "json",
                data: {
                    idCard: that.idCard
                },
                success: function (data) {
                    that.infor = data.data;
                    console.log(that.infor);
                    that.infor.diseasesType = Type(that.infor.diseasesType);
                    that.id = that.infor.id;
                    // that.idCard = url;
                    sessionStorage.setItem('BMI', that.infor.bMI);
                    sessionStorage.setItem('age', that.infor.age);
                }
            })

            that.getMedicalService();

        },
        methods: {
          initTable(url) {
            var ListNum = 0;
            var bb = 0;
            var arr2 = [];
            var arr1 = [];
            table = $('#example1').DataTable({
              "dom": "<'row'<'col-xs-2'l><'#mytool.col-xs-10'><'col-xs-6'f>r>" +
                "t" +
                "<'row'<''i><col-xs-6'p>>",
              "bFilter": false,//去掉搜索框
              "bAutoWidth": true, //自适应宽度
              "bPaginate": true, //翻页功能
              "bSort": true, //排序功能
              "bAutoWidth": true,//自动宽度
              "info": false,
              "searching" : false, //去掉搜索框方法一
              'lengthChange': false,
              "oPaginate": false,
              "sAjaxSource": url,
              "sAjaxDataProp": "list",//查询后，返回的集合
              "fnServerData": function ( sSource, aoData, fnCallback ) {  //查询条件
                aoData.push(
                  {
                    "name": "medicalName",
                    "value": $('#calendar1').val()
                  },
                  {
                    "name": "startTime",
                    "value": $('#beginDate').val()
                  },
                  {
                    "name": "endTime",
                    "value": $('#endTime').val()
                  }
                ),
                  $.ajax( {
                    "dataType": 'json',
                    "url": sSource,
                    "type":'post',
                    "data": aoData,
                    "success": function(resp){
                      // fnCallback(resp.data)
                      if( ListNum == 0 ){
                        bb = 1
                      }
                      var arr3 = []
                      for ( var a = 0; a < resp.data.iTotalDisplayRecords; a++ ){
                        arr3.push(a+1)
                      }
                      var arr1 = arr3.slice((bb-1)*10,bb*10);
                      for( var a = 0 ; a < arr1.length; a++ ){
                        resp.data.list[a].oldNumber = arr1[a]
                      }
                      fnCallback(resp.data)
                      var alis = $('.pagination li')
                      var lisa = alis.slice(1,alis.length-1)
                      for( var a = 0; a < lisa.length; a++ ){
                        $(lisa[a]).on('click',function(){
                          bb = $(this).find('a').text()
                        })
                      }
                      $(alis[0]).on('click',function(){
                        if( bb != 0 ){
                          bb --;
                        }
                      })
                      $(alis[alis.length-1]).on('click',function(){
                        if( bb < lisa.length ){
                          bb++;
                        }
                      })
                      ListNum++;

                    }
                  } );
              },
              "aoColumns" : [{
                "targets": 0,
                "data": null,
                "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
                  $(nTd).text(oData.oldNumber)
                  $(nTd).attr('title',oData.id)
                }
              },{
                "targets": 1,
                "data": null,
                "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
                  $(nTd).html('<span style="display:none">'+oData.id+'</span>')
                }
              },{
                "mDataProp" : "medicalSpecs"
              },{
                "mDataProp" : "numbers"
              },{
                "mDataProp" : "medicalFrequency"
              },{
                "targets": 5,
                "data": null,
                "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
                  var doctor;
                  if( oData.useType == 0 ){
                    doctor = `<span title="0">其他</span>`
                  }else if( oData.useType == 1 ){
                    doctor = `<span title="1">停药</span>`
                  }else if( oData.useType == 2 ){
                    doctor = `<span title="2">调整剂量</span>`
                  }else if( oData.useType == 3 ){
                    doctor = `<span title="3">新增药物</span>`
                  }else{
                    doctor = '<span title=""></span>'
                  }
                  $(nTd).html(doctor)
                }
              },{
                "targets": 6,
                "data": null,
                "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
                  var doctor;
                  if( oData.doctorName == null ){
                    doctor = ""
                  }else{
                    doctor = oData.doctorName
                  }
                  $(nTd).text(doctor)
                }
              },{
                "targets": 7,
                "data": null,
                "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
                  if( oData.recordTime != null ){
                    oData.recordTime = oData.recordTime.slice(0,10)
                  }else{
                    oData.recordTime = ''
                  }
                  $(nTd).text(oData.recordTime)
                }
              }],
              "oLanguage": {//插件的汉化
                "sLengthMenu": "32",
                "sZeroRecords" : "抱歉， 没有找到",
                "sInfoEmpty" : "没有数据",
                "sInfoFiltered" : "(从 _MAX_ 条数据中检索)",
                "oPaginate" : {
                  "sFirst" : "",
                  "sPrevious" : "<b>上一页<b>",
                  "sLast" : "",
                  "sNext" : "<i>下一页</i>"

                },
                "sZeroRecords" : "没有检索到数据",
                "sProcessing" : "<img src='' />",
                "sSearch" : "搜索"
              }
            } );
          },
          dieaseTypeCheck(item){
              let that = this;
              if(that.blNoMedicalType == 0){
                that.checkData.dieaseType = that.getSelectArray(that.checkData.dieaseType,item);
              }else{
                that.accompany.dieaseType = that.getSelectArray(that.accompany.dieaseType,item);
              }

            },
            takemedicineTypeCheck(item){
              let that = this;
              if(that.blNoMedicalType === 0){
                that.checkData.blMedicineType = that.getSelectArray(that.checkData.blMedicineType,item);
              }else{
                that.accompany.blMedicineType = that.getSelectArray(that.accompany.blMedicineType,item);
              }
            },
            medicineTypeCheck(item){
              let that = this;
              if(that.blNoMedicalType === 0){
                that.checkData.medicineType = that.getSelectArray(that.checkData.medicineType,item);
              }else{
                that.accompany.medicineType = that.getSelectArray(that.accompany.medicineType,item);
              }

            },
            medicineTypeCheckMc(item){
                let that = this;
                that.medicalService.nextInspection = that.getSelectArray(that.medicalService.nextInspection,item);
            },
        saveMedicalCare() {
                let that = this;
                that.medicalService.idCard = that.checkData.idCard.toString();

                that.medicalService.inspectionDate = $('#inspectionDate').val();
                that.medicalService.bginspectionDate = $('#bginspectionDate').val();
                that.medicalService.xinspectionDate = $('#xinspectionDate').val();
                that.medicalService.mrinspectionDate = $('#mrinspectionDate').val();
                that.medicalService.ctinspectionDate = $('#ctinspectionDate').val();
                that.medicalService.ysinspectionDate = $('#ysinspectionDate').val();
                that.medicalService.naxtFollowDate = $('#naxtFollowDate').val();
                that.medicalService.followDate = $('#followDate').val();
                that.medicalService.nextInspection = that.medicalService.nextInspection.toString();
                if($('#inspectionDate').val() == '') {
                    alert('检查日期不能为空！！');
                    return;
                }else {
                    params = JSON.stringify(that.medicalService);
                }

                $.ajax({
                    url: '${URL_ACCOMPANY_SAVE_MEDICALSERVICE}',
                    contentType: 'application/json;charset=utf-8',
                    data: params,
                    dataType: 'json',
                    type: 'post',
                    success:function(data){
                        // console.debug('save return result: ' + JSON.stringify(data));
                        $.ajax({
                            url: "${URL_SCREENING_GETBREADLINE}",
                            dataType: 'json',
                            type: 'post',
                            success: function (data) {
                                var urlLib = '';
                                urlLib = JSON.parse(data.data).slice(0, urlLib.length-1)
                                $.ajax({
                                    url: '${URL_SCREENING_SAVEBREADLINE}',
                                    data: {
                                        breadLine: JSON.stringify(urlLib)
                                    },
                                    dataType: 'json',
                                    type: 'post',
                                    success: function (data) {
                                        alert('保存成功')
                                        // console.log(data);
                                        // parent.showSrc(urlLib[urlLib.length - 1].href);
                                        //刷新当前页面
                                        window.parent.$('body,html').animate({scrollTop:0},1);
                                    }
                                })
                            }
                        })
                    }
                })

    },
            //修改病人基本信息
            addDevice: function () {
                let that = this;
                window.parent.showNewModelIframe("${URL_PATIENT_PATIENT}?id=" + that.infor.id + '&diseasesType=' + that.type, 800, 650);
            },
            // 用药信息弹窗
            addMedical: function () {
                // 获取用药信息
                let that = this;
                $.ajax({
                    url: "${URL_SCREENING_GETBREADLINE}",
                    dataType: 'json',
                    type: 'post',
                    success: function (data) {
                        breadLine = JSON.parse(data.data)
                        var url = '${URL_INDEX_TOMOREMEDICAL_QH}?id=' + that.infor.id + "&idCard=" + that.infor.idcard + '&diseasesType=' + that.diseasesType + '&type=' + that.Type
                        breadLine.push({
                            name: '用药信息',
                            href: url
                        })
                        $.ajax({
                            url: '${URL_SCREENING_SAVEBREADLINE}',
                            data: {
                                breadLine: JSON.stringify(breadLine)
                            },
                            dataType: 'json',
                            type: 'post',
                            success: function (data) {
                                parent.showSrc('${URL_INDEX_TOMOREMEDICAL_QH}?id=' + that.infor.id + "&idCard=" + that.infor.idcard + '&diseasesType=' + that.diseasesType + '&type=' + that.Type)
                            }
                        })
                    }
                })
            },
            Synchronous(e) {
                let that = this
                $.ajax({
                    url: '${URL_PATIENT_UPDATEPATIENT}',
                    data: {
                        id: that.infor.id,
                        synchronization: '1'
                    },
                    type: 'post',
                    dataType: 'json',
                    success: function (data) {
                        console.log(data)
                        if (data.success) {
                            e.target.disabled = true;
                            e.target.innerText = '正在同步'
                            that.setTime()
                        } else {
                            window.parent.showNewModelIframe('${URL_COMMON_TOTIPS}?title=' + data.msg, 300, 200)
                        }
                    }
                })
            },
          getBmi(){

          },
          getNowFormatDate() {
            var date = new Date();
            var seperator1 = "-";
            var year = date.getFullYear();
            var month = date.getMonth() + 1;
            var strDate = date.getDate();
            if (month >= 1 && month <= 9) {
              month = "0" + month;
            }
            if (strDate >= 0 && strDate <= 9) {
              strDate = "0" + strDate;
            }
            var currentdate = year + seperator1 + month + seperator1 + strDate;
            return currentdate;
          },
          chengSelect(){
            let that = this;
            if( that.checkData.prescribingDrugsPre == 1 ){
              $.ajax({
                url:'${URL_BLONELOOSE_DRUGLIST}',
                data:{
                  idCard:that.idCard,
                  checkId:that.id,
                  preCheck:that.checkData.prescribingDrugsPre
                },
                dataType:'json',
                type:'get',
                success:function(data){
                  if( data.dataList.length != 0 ){
                    data.dataList.forEach((item,index)=>{
                      that.medicalList.push({
                        id:index+1,
                        type:item.type,
                        chemistryName:item.chemistryName,
                        productName:item.productName,
                        consumption:item.consumption,
                        frequency:item.frequency,
                        mode:item.mode,
                        useStop:item.useStop
                      })
                    })
                  }
                }
              })
            }
          },
          getMedicalService(){
          console.log("getMedicalService")
                let that =this;
                console.log(that.infor.idcard)
                console.log(that)
                $.ajax({
                    url: "${URL_ACCOMPANY_MEDICALSERVICEBYID}",
                    type: 'post',
                    dataType: "json",
                    data: {
                        id: serId
                    },
                    success: function (data) {
                        console.log(that.data);
                        if (data.dataList[0] != '' && data.dataList[0] != undefined) {
                            that.medicalService.drug = that.isNull(data.dataList[0].drug);
                            that.medicalService.idCard = data.dataList[0].idCard;
                            that.medicalService.id = data.dataList[0].id;
                            that.medicalService.dosage = data.dataList[0].dosage;
                            that.medicalService.examination = data.dataList[0].examination;
                            that.medicalService.resultmr = data.dataList[0].resultmr;
                            that.medicalService.resultct = data.dataList[0].resultct;
                            that.medicalService.resultx = data.dataList[0].resultx;
                            that.medicalService.totalHipt = data.dataList[0].totalHipt;
                            that.medicalService.totalHipb = data.dataList[0].totalHipb;
                            that.medicalService.neckt = data.dataList[0].neckt;
                            that.medicalService.neckb = data.dataList[0].neckb;
                            that.medicalService.numthreefourt = data.dataList[0].numthreefourt;
                            that.medicalService.numthreefourb = data.dataList[0].numthreefourb;

                            that.medicalService.inspectionDate = that.isNull(data.dataList[0].inspectionDate);
                            let newDate = /\d{4}-\d{1,2}-\d{1,2}/g.exec(that.medicalService.inspectionDate);
                            $('#inspectionDate').val(newDate);


                            that.medicalService.bginspectionDate = that.isNull(data.dataList[0].bginspectionDate);
                            let newDate1 = /\d{4}-\d{1,2}-\d{1,2}/g.exec(that.medicalService.bginspectionDate);
                            $('#bginspectionDate').val(newDate1);

                            that.medicalService.xinspectionDate = that.isNull(data.dataList[0].xinspectionDate);
                            let newDate2 = /\d{4}-\d{1,2}-\d{1,2}/g.exec(that.medicalService.xinspectionDate);
                            $('#xinspectionDate').val(newDate2);

                            that.medicalService.mrinspectionDate = that.isNull(data.dataList[0].mrinspectionDate);
                            let newDate3 = /\d{4}-\d{1,2}-\d{1,2}/g.exec(that.medicalService.mrinspectionDate);
                            $('#mrinspectionDate').val(newDate3);

                            that.medicalService.ctinspectionDate = that.isNull(data.dataList[0].ctinspectionDate);
                            let newDate4 = /\d{4}-\d{1,2}-\d{1,2}/g.exec(that.medicalService.ctinspectionDate);
                            $('#ctinspectionDate').val(newDate4);

                            that.medicalService.ysinspectionDate = that.isNull(data.dataList[0].ysinspectionDate);
                            let newDate5 = /\d{4}-\d{1,2}-\d{1,2}/g.exec(that.medicalService.ysinspectionDate);
                            $('#ysinspectionDate').val(newDate5);

                            that.medicalService.naxtFollowDate = that.isNull(data.dataList[0].naxtFollowDate);
                            let newDate6 = /\d{4}-\d{1,2}-\d{1,2}/g.exec(that.medicalService.naxtFollowDate);
                            $('#naxtFollowDate').val(newDate6);

                            that.medicalService.followDate = that.isNull(data.dataList[0].followDate);
                            let newDate7 = /\d{4}-\d{1,2}-\d{1,2}/g.exec(that.medicalService.followDate);
                            $('#followDate').val(newDate7);
                            that.medicalService.chiefComplaint = data.dataList[0].chiefComplaint;
                            that.medicalService.explanations = data.dataList[0].explanations;
                            that.medicalService.physical = data.dataList[0].physical;
                            that.medicalService.classification = data.dataList[0].classification;
                            that.medicalService.diagnosis = data.dataList[0].diagnosis;




                            that.medicalService.balpMedicine = data.dataList[0].balpMedicine;
                            that.medicalService.ocMedicine = data.dataList[0].ocMedicine;
                            that.medicalService.pnpMedicine = data.dataList[0].pnpMedicine;
                            that.medicalService.ctxMedicine = data.dataList[0].ctxMedicine;
                            that.medicalService.wssdMedicine = data.dataList[0].wssdMedicine;
                            that.medicalService.pthMedicine = data.dataList[0].pthMedicine;
                            that.medicalService.calcium = data.dataList[0].calcium;
                            that.medicalService.phosphorus = data.dataList[0].phosphorus;
                            that.medicalService.routineBloodTest = data.dataList[0].routineBloodTest;
                            that.medicalService.whiteBloodCell = data.dataList[0].whiteBloodCell;
                            that.medicalService.redBloodCell = data.dataList[0].redBloodCell;
                            that.medicalService.hemoglobin = data.dataList[0].hemoglobin;
                            that.medicalService.platelet = data.dataList[0].platelet;
                            that.medicalService.urinalysis = data.dataList[0].urinalysis;
                            that.medicalService.urineProtein = data.dataList[0].urineProtein;
                            that.medicalService.bld = data.dataList[0].bld;
                            that.medicalService.urineSugar = data.dataList[0].urineSugar;
                            that.medicalService.esr = data.dataList[0].esr;
                            that.medicalService.biochemistry = data.dataList[0].biochemistry;
                            that.medicalService.totalProtein = data.dataList[0].totalProtein;
                            that.medicalService.albumin = data.dataList[0].albumin;
                            that.medicalService.globulin = data.dataList[0].globulin;
                            that.medicalService.totalBilirubin = data.dataList[0].totalBilirubin;
                            that.medicalService.alanine = data.dataList[0].alanine;
                            that.medicalService.aspartate = data.dataList[0].aspartate;
                            that.medicalService.alkaline = data.dataList[0].alkaline;
                            that.medicalService.creatinine = data.dataList[0].creatinine;
                            that.medicalService.thyroidFunction = data.dataList[0].thyroidFunction;
                            that.medicalService.tshThyroid = data.dataList[0].tshThyroid;
                            that.medicalService.tt3Thyroid = data.dataList[0].tt3Thyroid;
                            that.medicalService.tt4Thyroid = data.dataList[0].tt4Thyroid;
                            that.medicalService.ft3Thyroid = data.dataList[0].ft3Thyroid;
                            that.medicalService.ft4Thyroid = data.dataList[0].ft4Thyroid;
                            that.medicalService.femaleTumor = data.dataList[0].femaleTumor;
                            that.medicalService.femaleFetoprotein = data.dataList[0].femaleFetoprotein;
                            that.medicalService.femaleCarcinoembryonic = data.dataList[0].femaleCarcinoembryonic;
                            that.medicalService.ferritin = data.dataList[0].ferritin;
                            that.medicalService.carbohydrate = data.dataList[0].carbohydrate;
                            that.medicalService.femaleCarbohydrate = data.dataList[0].femaleCarbohydrate;
                            that.medicalService.femaleSupplement = data.dataList[0].femaleSupplement;
                            that.medicalService.maleTumor = data.dataList[0].maleTumor;
                            that.medicalService.maleFetoprotein = data.dataList[0].maleFetoprotein;
                            that.medicalService.maleCarcinoembryonic = data.dataList[0].maleCarcinoembryonic;
                            that.medicalService.maleCarbohydrate = data.dataList[0].maleCarbohydrate;
                            that.medicalService.prostate = data.dataList[0].prostate;
                            that.medicalService.malesCarbohydrate = data.dataList[0].malesCarbohydrate;
                            that.medicalService.maleSupplement = data.dataList[0].maleSupplement;
                            that.medicalService.maleProstate = data.dataList[0].maleProstate;
                            that.medicalService.maleFtprostate = data.dataList[0].maleFtprostate;
                            that.medicalService.malesSupplement = data.dataList[0].malesSupplement;
                            that.medicalService.immunological = data.dataList[0].immunological;
                            that.medicalService.c3Complement = data.dataList[0].c3Complement;
                            that.medicalService.c4Complement = data.dataList[0].c4Complement;
                            that.medicalService.igaImmunoglobulin = data.dataList[0].igaImmunoglobulin;
                            that.medicalService.iggImmunoglobulin = data.dataList[0].iggImmunoglobulin;
                            that.medicalService.igmImmunoglobulin = data.dataList[0].igmImmunoglobulin;
                            that.medicalService.igeImmunoglobulin = data.dataList[0].igeImmunoglobulin;
                            that.medicalService.urineChaink = data.dataList[0].urineChaink;
                            that.medicalService.urineChain = data.dataList[0].urineChain;
                            that.medicalService.bloodChain = data.dataList[0].bloodChain;
                            that.medicalService.bloodChaink = data.dataList[0].bloodChaink;
                            that.medicalService.lumbarSpineOneb = data.dataList[0].lumbarSpineOneb;
                            that.medicalService.lumbarSpineOnet = data.dataList[0].lumbarSpineOnet;
                            that.medicalService.lumbarSpineTwob = data.dataList[0].lumbarSpineTwob;
                            that.medicalService.lumbarSpineTwot = data.dataList[0].lumbarSpineTwot;
                            that.medicalService.lumbarSpineThreeb = data.dataList[0].lumbarSpineThreeb;
                            that.medicalService.lumbarSpineThreet = data.dataList[0].lumbarSpineThreet;
                            that.medicalService.lumbarSpineFourb = data.dataList[0].lumbarSpineFourb;
                            that.medicalService.lumbarSpineFourt = data.dataList[0].lumbarSpineFourt;
                            that.medicalService.numonetwob = data.dataList[0].numonetwob;
                            that.medicalService.numonetwot = data.dataList[0].numonetwot;
                            that.medicalService.numonethreeb = data.dataList[0].numonethreeb;
                            that.medicalService.numonethreet = data.dataList[0].numonethreet;
                            that.medicalService.numonefourb = data.dataList[0].numonefourb;
                            that.medicalService.numonefourt = data.dataList[0].numonefourt;
                            that.medicalService.numtwothreeb = data.dataList[0].numtwothreeb;
                            that.medicalService.numtwothreet = data.dataList[0].numtwothreet;
                            that.medicalService.numtwofourb = data.dataList[0].numtwofourb;
                            that.medicalService.numtwofourt = data.dataList[0].numtwofourt;

                            /*that.medicalService.nextInspection = ;*/
                            /*if (data.dataList[0].nextInspection != ''){
                                datas = data.dataList[0].nextInspection.split(',');
                                console.log(datas)
                                for( var i = 0; i < datas.length; i++ ){
                                    console.log(datas[i])
                                    that.medicalService.nextInspection = that.getSelectArray(that.medicalService.nextInspection,datas[i]);
                                }
                            }*/
                            that.showMoreCheck(that.nextInspection,data.dataList[0].nextInspection);

                            that.medicalService.nextInspection = that.isNull(data.dataList[0].nextInspection);
                            let arrDose = [];
                            arrDose = that.medicalService.nextInspection.split(',');

                            Object.keys(that.nextInspection).forEach(key => {
                                that.medicalService.nextInspection[key] = arrDose[key];
                            })




/*
                            that.checkData.blMedicineDose = that.isNull(res.data.blMedicineDose);
                            that.checkData.blMedicineYear = that.isNull(res.data.blMedicineYear);
                            let arrDose = [];
                            arrYear = [];
                            arrDose = that.checkData.blMedicineDose.split(',');
                            arrYear = that.checkData.blMedicineYear.split(',');

                            Object.keys(that.medicineYear).forEach(key => {
                                that.medicineYear[key].blMedicineYear = arrYear[key];
                                that.medicineYear[key].blMedicineDose = arrDose[key];
                            })*/


                        } else {

                        }
                    }
                })
            },
          closeFrame(){
            that.medical = false;
          },
          // 多选框回显
          showMoreCheck(locaData,data){
            // 字符串为空
            if(data.length == 0 || data == '' || data == null) {
              data = '';
            } else if (data.indexOf(',') != -1) {
              // 字符串包含英文,则说明是数组
              data = data.split(',');
            } else {
              // 单个字符串 eg: '1'
              data = data.split('');
            }
            for( var a = 0; a < locaData.length; a++ ){
              for( var i = 0; i < data.length; i++ ){
                if( locaData[a].id == data[i] ){
                  locaData[a].check = true
                }
              }
            }
          },
          showMoreCheckOther(locaData,data){
            // 字符串为空
            if(data.length == 0 || data == '' || data == null) {
              data = '';
            } else if (data.indexOf(',') != -1) {
              // 字符串包含英文,则说明是数组
              data = data.split(',');
            } else {
              // 单个字符串 eg: '1'
              data = data.split('');
            }
            for( var a = 0; a < locaData.length; a++ ){
              for( var i = 0; i < data.length; i++ ){
                if( locaData[a].id == data[i] ){
                  locaData[a].checked = true
                }
              }
            }
          },
          // 当前日期
          getNowFormatDate() {
            var date = new Date();
            var seperator1 = "-";
            var year = date.getFullYear();
            var month = date.getMonth() + 1;
            var strDate = date.getDate();
            if (month >= 1 && month <= 9) {
              month = "0" + month;
            }
            if (strDate >= 0 && strDate <= 9) {
              strDate = "0" + strDate;
            }
            var currentdate = year + seperator1 + month + seperator1 + strDate;
            return currentdate;
          },
          // 公用获取选中的数组方法
          getSelectArray(data,item){
            if( data == '' ){
              data = []
            }else if( data.constructor != Array ){
              data = data.split(',')
            }
            if( !item.check ){
              item.check = true;
              data.push(item.id)
            }else{
              item.check = false;
              var index = data.indexOf(item.id);
              if (index > -1) {
                data.splice(index, 1);
              }
            }
            if(data.indexOf('[]') > -1) {
              data = data.replace(/[]/g, "");
            }
            return data
          },
          getSelectArrayOther(data,item){
            if( data == '' ){
              data = []
            }else if( data.constructor != Array ){
              data = data.split(',')
            }
            if( !item.checked ){
              item.checked = true;
              data.push(item.id)
            }else{
              item.checked = false;
              var index = data.indexOf(item.id);
              if (index > -1) {
                data.splice(index, 1);
              }
            }
            if(data.indexOf('[]') > -1) {
              data = data.replace(/[]/g, "");
            }
            return data.toString()
          },
          isNull(data){
            if( data == null ){
              data = ''
            }
            return data
          },

        },
        watch:{
          checkData:{
            handler(){
              if( this.checkData.weight != '' && this.checkData.height != '' ){
                if( this.checkData.weight == 0 || this.checkData.height == 0 ) {
                  this.BMI = 0
                }else{
                  var Num = parseInt(this.checkData.height) * 0.01
                  this.BMI = parseInt(this.checkData.weight) / ( Num*Num );
                  this.BMI = this.BMI.toFixed(2);
                }
              } else{
                this.BMI = ''
              }
            },
            deep:true
          }
        }
      })

      // aaaaaaaaaaaaa

    // initTable()



    </script>
    <script>
<%--        $(function(){--%>
<%--&lt;%&ndash;          debugger&ndash;%&gt;--%>
<%--&lt;%&ndash;          let search = location.search.split('?')[1]&ndash;%&gt;--%>
<%--&lt;%&ndash;//            // 初始化获取默认今天&ndash;%&gt;--%>
<%--&lt;%&ndash;          let [namr,value] = search.split('&')[0].split('=');&ndash;%&gt;--%>
<%--&lt;%&ndash;          // that.idCard= value;&ndash;%&gt;--%>
<%--&lt;%&ndash;          // that.checkData.idCard = that.idCard;&ndash;%&gt;--%>
<%--&lt;%&ndash;          // let [idName,idValue] = search.split('&')[1].split('=');&ndash;%&gt;--%>
<%--&lt;%&ndash;          // serId = [idName,idValue][1]&ndash;%&gt;--%>

<%--&lt;%&ndash;          var idcardUrl = '${URL_PATIENT_MEDICALINFOQh}?idCard='+[namr,value][1]&ndash;%&gt;--%>
<%--&lt;%&ndash;console.log('222222222222222222222222222222');&ndash;%&gt;--%>
<%--&lt;%&ndash;          console.log(idcardUrl);&ndash;%&gt;--%>
<%--&lt;%&ndash;          console.log('222222222222222222222222222222');&ndash;%&gt;--%>
<%--          --%>

<%--        });--%>
<%--        function --%>
    </script>
</body>
</html>
